qb-clothing
You need to edit default qb-clothing to execute event when character is created.
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)
endAfter Edit:
local function SaveSkin()
local model = GetEntityModel(PlayerPedId())
local clothing = json.encode(skinData)
TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
TriggerEvent('op-multicharacter:charCreationComplete')
endLast updated