Skip to content

Commit

Permalink
fix(esx): Only restore loadout if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios authored May 6, 2023
1 parent 392b7bd commit 9f89d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/framework/esx/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ 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
if Framework.PlayerData then
if Framework.PlayerData and Framework.PlayerData.loadout then
TriggerEvent("esx:restoreLoadout")
end
Framework.CachePed()
Expand Down

0 comments on commit 9f89d44

Please sign in to comment.