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

# esx\_multicharacter (old)

Integration guide for `esx_multicharacter` **below v1.10.9**.

{% hint style="warning" %}
If this doesn't match your version, try the [newer integration](/paid-resources/rcore_clothing/integration/esx_multicharacter.md).
{% endhint %}

***

## Step 1 - Server: inject skin data

Open `esx_multicharacter/server/main.lua` and find `characters[id] = {` inside `SetupCharacters`.

Paste this code **above** it:

```lua
if GetResourceState("rcore_clothing") == "started" then
    if v then
        v.skin = json.encode(exports["rcore_clothing"]:getSkinByIdentifier(v.identifier))
    elseif result and i and result[i] then
        result[i].skin = json.encode(exports["rcore_clothing"]:getSkinByIdentifier(result[i].identifier))
    else
        print("ERROR: Unknown version of multichar")
    end
end
```

***

## Step 2 - Client: load skin in SetupCharacter

Open `esx_multicharacter/client/main.lua` and find `TriggerEvent("skinchanger:loadSkin", skin)` inside `SetupCharacter`.

Replace with:

```lua
if Characters[index].skin then
    exports["rcore_clothing"]:setPlayerSkin(skin)
else
    TriggerEvent("skinchanger:loadSkin", skin)
end
```

***

## Step 3 - Client: load skin on character select

In the same file, find `TriggerEvent("skinchanger:loadSkin", Characters[index].skin)` inside `SetupCharacter`.

Replace with:

```lua
exports["rcore_clothing"]:setPlayerSkin(Characters[index].skin)
```

***

## Step 4 - Server: register database tables

Open `esx_multicharacter/server/main.lua` and find `local DB_TABLES`.

Add these entries:

```lua
["rcore_clothing_current"] = "identifier",
["rcore_clothing_purchased"] = "identifier",
["rcore_clothing_outfits"] = "identifier",
```

Result should look like:

```lua
local DB_TABLES = {
    users = "identifier",
    ["rcore_clothing_current"] = "identifier",
    ["rcore_clothing_purchased"] = "identifier",
    ["rcore_clothing_outfits"] = "identifier",
}
```
