fix: Cached Ped Not updating correctly

This commit is contained in:
Kasey FItton
2024-11-11 20:55:49 +00:00
parent 99953386e4
commit 9f7ca3f3b9
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -136,7 +136,6 @@ end
function Actions:SlowLoop()
CreateThread(function()
while ESX.PlayerLoaded do
self:TrackPed()
self:TrackPedCoords()
self:TrackPauseMenu()
self:TrackVehicle()
@@ -145,8 +144,19 @@ function Actions:SlowLoop()
end)
end
function Actions:PedLoop()
CreateThread(function()
while ESX.PlayerLoaded do
self:TrackPed()
Wait(0)
end
end)
end
function Actions:Init()
self:SlowLoop()
self:PedLoop()
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)