mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 11:01:25 +00:00
Merge pull request #1449 from Mycroft-Studios/updates
fix: Cached Ped not being updated Correctly
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -44,7 +44,7 @@ function SkinChanger:DefaultModel(male, cb)
|
||||
local model = self:RequestModel(characterModel)
|
||||
|
||||
SetPlayerModel(PlayerId(), model)
|
||||
SetPedDefaultComponentVariation(playerPed)
|
||||
SetPedDefaultComponentVariation(PlayerPedId())
|
||||
|
||||
SetModelAsNoLongerNeeded(model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user