esx_multicharacter

Step 1

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

Place this code above the 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

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:

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

Replace it with this:

Step 4

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

Replace it with this:

Step 5

Open file esx_multicharacter/server/modules/database.lua

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

And add these entries to the Database.tables variable:

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

Last updated

Was this helpful?