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

# Custom integration

How to integrate `rcore_clothing` with any multicharacter script.

{% hint style="danger" %}
This guide is for multicharacter script authors or advanced users. If your multichar is listed on the [integrations page](/paid-resources/rcore_clothing/integration.md), use that guide instead.
{% endhint %}

***

## Step 1 - Get the skin

Call `getSkinByIdentifier` with the character's identifier. Works on both client and server side.

Returns a table with `ped_model` and `skin` keys.

```lua
local skin = exports['rcore_clothing']:getSkinByIdentifier(identifier)
```

***

## Step 2 - Set the skin

Apply the skin to the ped in the character selection screen.

```lua
exports['rcore_clothing']:setPedSkin(ped, skin)
```

***

## Step 3 - Open the character creator

Your multichar likely already triggers one of these events for new characters:

{% tabs %}
{% tab title="ESX" %}

```lua
TriggerEvent('esx_skin:resetFirstSpawn')
TriggerEvent('esx_skin:playerRegistered')
```

{% endtab %}

{% tab title="QBCore" %}

```lua
TriggerEvent('qb-clothes:client:CreateFirstCharacter')
```

{% endtab %}

{% tab title="Direct" %}

```lua
TriggerEvent('rcore_clothing:openCharCreator')
```

{% endtab %}
{% endtabs %}
