For the complete documentation index, see llms.txt. This page is also available as Markdown.

esx_multicharacter

Integration guide for esx_multicharacter v1.10.9 and newer.


Step 1 - Server: inject skin data

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

Place this code above that line:

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 - Client: load skin on character switch

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

Replace it with:


Step 3 - Client: apply skin on temp ped spawn

In the same file, find Multicharacter:SpawnTempPed() and inside it find:

Replace with:


Step 4 - Client: get skin on player load

In the same file, find Multicharacter:PlayerLoaded() and inside it find:

Replace with:


Step 5 - Server: register database tables

Open esx_multicharacter/server/modules/database.lua and find Database.tables = { users = "identifier" }.

Add these entries:

Result should look like:

Last updated