Hello !
Seems like i’m having an issue with skinchanger and i can’t find the solution anywhere… When i purchase clothes through esx_eden_clotheshop i get this error :
I can’t figure out what’s the problem … If someone could help me out … This seems to affect the fact that esx-qalle-jail aint loading the proper clothes for the male ped… nor the mechanicjob…
It refers to this part of skinchanger:
RegisterNetEvent(‘skinchanger:loadSkin’)
AddEventHandler(‘skinchanger:loadSkin’, function(skin, cb)
if skin[‘sex’] ~= LastSex then
LoadSkin = skin
if skin['sex'] == 0 then
TriggerEvent('skinchanger:loadDefaultModel', true, cb)
else
TriggerEvent('skinchanger:loadDefaultModel', false, cb)
end
else
ApplySkin(skin)
if cb ~= nil then
cb()
end
end
LastSex = skin['sex']
end)
This section of eden_clotheshop:
AddEventHandler(‘esx_eden_clotheshop:hasExitedMarker’, function(zone)
ESX.UI.Menu.CloseAll()
CurrentAction = nil
if not HasPayed then
if not HasLoadCloth then
TriggerEvent('esx_skin:getLastSkin', function(skin)
TriggerEvent('skinchanger:loadSkin', skin)
end)
end
end
end)
Help would be very much appreciated ! thank you