qb-clothing

You need to edit default qb-clothing to execute event when character is created.

1

Find qb-clothing

Find location of qb-clothing on your server inside resources folder

2

Find function

Go to qb-clothing/client/main.lua and find SaveSkin()

Replace function with this:

Before Edit:

local function SaveSkin()
    local model = GetEntityModel(PlayerPedId())
    local clothing = json.encode(skinData)
    TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
end

After Edit:

local function SaveSkin()
    local model = GetEntityModel(PlayerPedId())
    local clothing = json.encode(skinData)
    TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
    TriggerEvent('op-multicharacter:charCreationComplete')
end

Last updated