> 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/qb_vms_multichar.md).

# QB vms\_multichars

Integration guide for `vms_multichars` on QBCore.

***

## Step 1 - Config

In `vms_multichars/config/config.lua`, set:

```lua
Config.SkinManager = "rcore_clothing"
```

***

## Step 2 - Client: set ped skin

Open `vms_multichars/client/main.lua` and find both occurrences of:

```lua
exports['illenium-appearance']:setPedAppearance(PlayerPedId(), data)
```

Add this block **above** each occurrence:

```lua
    elseif Config.SkinManager == "rcore_clothing" then
        exports.rcore_clothing:setPedSkin(PlayerPedId(), data)
```

***

## Step 3 - Server: get skin

Open `vms_multichars/server/main.lua` and find `QBCore.Functions.CreateCallback("vms_multichars:getSkin", function(_, cb, cid)`.

Add this code **right after** that line:

```lua
    if Config.SkinManager == 'rcore_clothing' then
        local skin = exports.rcore_clothing:getSkinByIdentifier(cid)
        if skin then
            cb(skin.ped_model, json.encode(skin.skin))
        else
            cb(nil)
        end
        return
    end
```
