mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
fix: Cached Ped Not updating correctly
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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