QB
Deleting Scripts
If you have qb-clothing or any clothing scrip delete
Remove qb-clothing from dependencies in the fxmanifest file of all scripts
Edit qb-multicharacter
Open qb-multicharacter\server\main.lua
QBCore.Functions.CreateCallback("qb-multicharacter:server:getSkin", function(_, cb, cid)
local result = MySQL.query.await('SELECT * FROM playerskins WHERE citizenid = ? AND active = ?', {cid, 1})
if result[1] ~= nil then
cb(result[1].model, result[1].skin)
else
cb(nil)
end
end)
Find the top code and replace it with the bottom one
QBCore.Functions.CreateCallback("qb-multicharacter:server:getSkin", function(_, cb, cid)
local result = MySQL.single.await('SELECT `model`, `skin` FROM `tgiann_skin` WHERE `citizenid` = ? LIMIT 1', {cid})
if result and result.model and result.skin then
cb(result.model, result.skin)
else
cb(nil)
end
end)
You can continue to use the loadPedClothing event in qb. click if you want to change it
Last updated