fix: Don't Wait for Skin to Load

This commit is contained in:
MiddleSkillz
2021-05-06 02:46:35 -06:00
parent 38d4fa62bb
commit 274955d52e
+2 -2
View File
@@ -137,8 +137,8 @@ function CreateSkinCam()
RenderScriptCams(true, true, 500, true, true)
isCameraActive = true
SetCamRot(cam, 0.0, 0.0, 270.0, true)
SetCamCoord(cam, GetEntityCoords(playerPed))
SetCamRot(cam, 0.0, 0.0, 270.0, true)
SetEntityHeading(playerPed, 0.0)
end
@@ -153,7 +153,7 @@ Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if not skinLoaded and isCameraActive then
if isCameraActive then
DisableControlAction(2, 30, true)
DisableControlAction(2, 31, true)
DisableControlAction(2, 32, true)