Skip to content

Commit

Permalink
fix(command/reloadskin): Work outfit not resetting properly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Jul 19, 2023
1 parent 0285208 commit b84fe2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
local client = client
local reloadSkinTimer = GetGameTimer()

local function LoadPlayerUniform()
local function LoadPlayerUniform(reset)
if reset then
TriggerServerEvent("illenium-appearance:server:syncUniform", nil)
return
end
lib.callback("illenium-appearance:server:getUniform", false, function(uniformData)
if not uniformData then
return
Expand Down Expand Up @@ -731,7 +735,7 @@ RegisterNetEvent("illenium-appearance:client:reloadSkin", function(bypassChecks)
end
client.setPlayerAppearance(appearance)
if Config.PersistUniforms then
LoadPlayerUniform()
LoadPlayerUniform(bypassChecks)
end
RestorePlayerStats()
end)
Expand Down

0 comments on commit b84fe2b

Please sign in to comment.