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

# esx\_multicharacter

{% hint style="warning" %}
This is integration for the new version of esx\_multicharacter (>=1.10.9)

If this integration does not match your esx\_multicharacter version, please try the [old one](/paid-resources/rcore_clothing/impl/esx_multicharacter_old.md).
{% endhint %}

### Step 1

Open file `esx_multicharacter/server/modules/multicharacter.lua` and find `characters[id] = {` (inside function `SetupCharacters`)

Place this code **above** the line.

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

### Step 2

Open file `esx_multicharacter/client/modules/multicharacter.lua` and find `TriggerEvent("skinchanger:loadSkin", newCharacter.skin)` (inside function `Multicharacter:ChangeExistingPed()`)

Replace the line with the following code:

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

### Step 3

In the same file `esx_multicharacter/client/modules/multicharacter.lua` find function `Multicharacter:SpawnTempPed()` and inside find

```lua
ESX.SpawnPlayer(skin, self.spawnCoords, function()
    DoScreenFadeIn(600)
    self.playerPed = PlayerPedId()
end)
```

Replace it with this:

```lua
ESX.SpawnPlayer(skin, self.spawnCoords, function()
    DoScreenFadeIn(600)
    self.playerPed = PlayerPedId()
    exports["rcore_clothing"]:setPlayerSkin(skin)
end)
```

### Step 4

In the same file `esx_multicharacter/client/modules/multicharacter.lua` find function `Multicharacter:PlayerLoaded()` and inside find

```lua
skin = exports["skinchanger"]:GetSkin()
```

Replace it with this:

```lua
skin = exports['rcore_clothing']:getPlayerSkin()
```

### Step 5

Open file `esx_multicharacter/server/modules/database.lua`

Find `Database.tables = { users = "identifier" }`

And add these entries to the `Database.tables` variable:

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

Now it should look something like this (don't copy this, you may have other existing tables defined, this is just an example):

```lua
Database.tables = { users = "identifier", ["rcore_clothing_current"] = "identifier", ["rcore_clothing_purchased"] = "identifier", ["rcore_clothing_outfits"] = "identifier", }
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_clothing/impl/esx_multicharacter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
