Anyone know a fix for this qb-clothing?

geting this error anyone know a fix ?
Screenshot 2025-09-13 143020
qb-clothing ^1SCRIPT ERROR: @qb-clothing/client/main.lua:1215: attempt to index a number value (field ‘?’)^7

If you are using the last qb-clothing that’s mean the issue is here

This will fix the issue

for k in pairs(data) do
    if not skinData[k] then
        skinData[k] = {}
    end
    if not skinData[k].item then
        skinData[k].item = -1
    end
    if not skinData[k].texture then
        skinData[k].texture = 0
    end
    -- To secure backwards compability for facemixing
    if data[k].shapeMix then
        skinData[k].shapeMix = data[k].shapeMix
    end

    if data[k].skinMix then
        skinData[k].skinMix = data[k].skinMix
    end
end

still the same issue even doing that code. it happens in qb-management when i open the outfits that’s when noticed it was doing this problem.


Can you contact me on Discord?

1 Like

Utah State RolePlay Here’s the invite link

joined

    for k, v in pairs(data) do
        if type(v) == "table" then
            if not skinData[k] then skinData[k] = {} end

            skinData[k].item = v.item or -1
            skinData[k].texture = v.texture or 0

            if v.shapeMix then
                skinData[k].shapeMix = v.shapeMix
            end

            if v.skinMix then
                skinData[k].skinMix = v.skinMix
            end
        else
            skinData[k] = v
        end
    end

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.