Merge pull request #1449 from Mycroft-Studios/updates

fix: Cached Ped not being updated Correctly
This commit is contained in:
Kasey Fitton
2024-11-11 20:40:00 +00:00
committed by GitHub
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)