QBX

Deleting Scripts

  1. If you have qb-clothing, qbx-clothing, illenium-appearance or any clothing script delete

Latest QBX

Edit qbx-core

  1. 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
  1. 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
  1. Open qbx_core/client /character.lua

  2. Find exports['illenium-appearance'] and replace it with the one below.

exports['tgiann-clothing']

Old QBX

Edit qbx-multicharacter

  1. 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)
  1. 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)

  1. Open qbx-multicharacter\client\main.lua

  2. Find exports["illenium-appearance"] and replace it with the one below.

exports["tgiann-clothing"]

Last updated