mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +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)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Actions:PedTrackingLoop()
|
||||||
|
CreateThread(function()
|
||||||
|
while ESX.PlayerLoaded do
|
||||||
|
self:TrackPed()
|
||||||
|
Wait(0)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
function Actions:Init()
|
function Actions:Init()
|
||||||
self:SlowLoop()
|
self:SlowLoop()
|
||||||
|
self:PedTrackingLoop()
|
||||||
end
|
end
|
||||||
|
|
||||||
Actions:Init()
|
Actions:Init()
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function SkinChanger:DefaultModel(male, cb)
|
|||||||
local model = self:RequestModel(characterModel)
|
local model = self:RequestModel(characterModel)
|
||||||
|
|
||||||
SetPlayerModel(PlayerId(), model)
|
SetPlayerModel(PlayerId(), model)
|
||||||
SetPedDefaultComponentVariation(playerPed)
|
SetPedDefaultComponentVariation(PlayerPedId())
|
||||||
|
|
||||||
SetModelAsNoLongerNeeded(model)
|
SetModelAsNoLongerNeeded(model)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user