fix: Cached Ped not being updated Correctly

This commit is contained in:
Kasey FItton
2024-11-11 20:36:00 +00:00
parent 1e47624c64
commit a3fab28d1f
2 changed files with 11 additions and 1 deletions
@@ -145,8 +145,18 @@ function Actions:SlowLoop()
end)
end
function Actions:PedTrackingLoop()
CreateThread(function()
while ESX.PlayerLoaded do
self:TrackPed()
Wait(0)
end
end)
end
function Actions:Init()
self:SlowLoop()
self:PedTrackingLoop()
end
Actions:Init()
+1 -1
View File
@@ -44,7 +44,7 @@ function SkinChanger:DefaultModel(male, cb)
local model = self:RequestModel(characterModel)
SetPlayerModel(PlayerId(), model)
SetPedDefaultComponentVariation(playerPed)
SetPedDefaultComponentVariation(PlayerPedId())
SetModelAsNoLongerNeeded(model)