> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_clothing/integration/qbox_multichar.md).

# qbox\_multichar

Integration guide for `qbx_core` multicharacter.

***

## Steps

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

```lua
---@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
```
