renzuzu / renzu_clothes

Fivem Advanced Clotheshop and Wardrobe
GNU General Public License v3.0
38 stars 19 forks source link

Errors #39

Open EnemiMontana opened 1 year ago

EnemiMontana commented 1 year ago

image Help me please?

EnemiMontana commented 1 year ago

@renzuzu

killy60 commented 11 months ago

I have the same problem, have you found a solution?

beastinrapper commented 9 months ago

Something that worked for me is to change config.old = false to true in the config.lua

beastinrapper commented 9 months ago

Actually i found the problem!

Im using skinchanger and oxmysql

in config.lua

lines 1173-1179

if Config.skin == 'skinchanger' then
    local skin = promise:new()
    TriggerEvent('skinchanger:getSkin', function(skin)
        skin:resolve()
    end)
    return Citizen.Await(skin)
end

should be changed to this

local skinPromise = promise:new()
TriggerEvent('skinchanger:getSkin', function(skinData)
    skinPromise:resolve(skinData)
end)

return Citizen.Await(skinPromise)

Should fix the issue