For the complete documentation index, see llms.txt. This page is also available as Markdown.

qbox_multichar

Integration guide for qbx_core multicharacter.


Steps

Open qbx_core/client/character.lua and replace the previewPed function with:

---@param citizenId? string
local function previewPed(citizenId)
    if not citizenId then
        randomPed()
        return
    end
    local skinData = exports['rcore_clothing']:getSkinByIdentifier(citizenId)

    if skinData then
        local pedModel = skinData.ped_model
        lib.requestModel(pedModel, config.loadingModelsTimeout)
        SetPlayerModel(cache.playerId, pedModel)
        pcall(function()
            exports['rcore_clothing']:setPedSkin(PlayerPedId(), skinData)
        end)
        SetModelAsNoLongerNeeded(pedModel)
    else
        randomPed()
    end
end

Last updated