Skip to content

Commit

Permalink
Merge pull request #1449 from Mycroft-Studios/updates
Browse files Browse the repository at this point in the history
fix: Cached Ped not being updated Correctly
  • Loading branch information
Mycroft-Studios authored Nov 11, 2024
2 parents 1e47624 + a3fab28 commit 094eaf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions [core]/es_extended/client/modules/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion [core]/skinchanger/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function SkinChanger:DefaultModel(male, cb)
local model = self:RequestModel(characterModel)

SetPlayerModel(PlayerId(), model)
SetPedDefaultComponentVariation(playerPed)
SetPedDefaultComponentVariation(PlayerPedId())

SetModelAsNoLongerNeeded(model)

Expand Down

0 comments on commit 094eaf9

Please sign in to comment.