using command /reloadskin fix this issue, but i tried this instead using command and not working at all.
local playerLoaded = false
local firstSpawn = true
AddEventHandler('esx:onPlayerSpawn', function()
Citizen.CreateThread(function()
while not playerLoaded do
Citizen.Wait(100)
end
if firstSpawn then
ESX.TriggerServerCallback('fivem-appearance:getPlayerSkin', function(appearance)
exports['fivem-appearance']:setPlayerAppearance(appearance)
end)
firstSpawn = false
end
end)
end)
using command /reloadskin fix this issue, but i tried this instead using command and not working at all.