Skip to content

Commit

Permalink
fix(esx): Loadout issue on load
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios authored May 6, 2023
1 parent 307aa75 commit 392b7bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/framework/esx/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ RegisterNetEvent("skinchanger:loadSkin", function(skin, cb)
else -- add validation invisible when failed registration (maybe server restarted when apply skin)
SetInitialClothes(Config.InitialPlayerClothes[Framework.GetGender(true)])
end
TriggerEvent("esx:restoreLoadout")
if Framework.PlayerData then
TriggerEvent("esx:restoreLoadout")
end
Framework.CachePed()
if cb ~= nil then
cb()
Expand Down

0 comments on commit 392b7bd

Please sign in to comment.