From 38d4fa62bb0adc4534cfd062e034871bf2683853 Mon Sep 17 00:00:00 2001 From: MiddleSkillz Date: Thu, 6 May 2021 02:39:15 -0600 Subject: [PATCH 1/2] fix: Update for Latest ESX Legacy Changes --- client/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/main.lua b/client/main.lua index 4cad3373..7c32a35b 100644 --- a/client/main.lua +++ b/client/main.lua @@ -138,6 +138,7 @@ function CreateSkinCam() isCameraActive = true SetCamRot(cam, 0.0, 0.0, 270.0, true) + SetCamCoord(cam, GetEntityCoords(playerPed)) SetEntityHeading(playerPed, 0.0) end From 274955d52ecc6d0371a2400b25faa0406d3a152e Mon Sep 17 00:00:00 2001 From: MiddleSkillz Date: Thu, 6 May 2021 02:46:35 -0600 Subject: [PATCH 2/2] fix: Don't Wait for Skin to Load --- client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index 7c32a35b..c51e8655 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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)