QBX
Deleting Scripts
If you have qb-clothing, qbx-clothing, illenium-appearance or any clothing script delete
Latest QBX
Edit qbx-core
Open qbx_core/server/storage/players.lua
local function fetchPlayerSkin(citizenId)
return MySQL.single.await('SELECT * FROM playerskins WHERE citizenid = ? AND active = 1', {citizenId})
end
Find the top code and replace it with the bottom one
local function fetchPlayerSkin(citizenId)
local playerSkin = MySQL.single.await('SELECT `model`, `skin` FROM `tgiann_skin` WHERE `citizenid` = ? LIMIT 1', {citizenId})
return { citizenid = citizenId, model = playerSkin.model, skin = playerSkin.skin, active = true }
end
Open qbx_core/client /character.lua
Find exports['illenium-appearance'] and replace it with the one below.
exports['tgiann-clothing']
Old QBX
Edit qbx-multicharacter
Open qbx-multicharacter\server\main.lua
lib.callback.register('qb-multicharacter:callback:UpdatePreviewPed', function(source, CitizenID)
local Ped = MySQL.single.await('SELECT * FROM playerskins WHERE citizenid = ?', {CitizenID})
local PlayerData = MySQL.single.await('SELECT * FROM players WHERE citizenid = ?', {CitizenID})
if not Ped or not PlayerData then return end
Charinfo = json.decode(PlayerData.charinfo)
return Ped.skin, joaat(Ped.model), Charinfo.gender
end)
Find the top code and replace it with the bottom one
lib.callback.register('qb-multicharacter:callback:UpdatePreviewPed', function(source, CitizenID)
local Ped = MySQL.single.await('SELECT `model`, `skin` FROM `tgiann_skin` WHERE `citizenid` = ? LIMIT 1', {CitizenID})
local PlayerData = MySQL.single.await('SELECT * FROM players WHERE citizenid = ?', {CitizenID})
if not Ped or not PlayerData then return end
Charinfo = json.decode(PlayerData.charinfo)
return Ped.skin, Ped.model, Charinfo.gender
end)
Open qbx-multicharacter\client\main.lua
Find exports["illenium-appearance"] and replace it with the one below.
exports["tgiann-clothing"]
Last updated