esx_multicharacter OLD
This is integration for the old version of esx_multicharacter (<1.10.9)
If this integration does not match your esx_multicharacter version, please try the new one.
Step 1
Open file esx_multicharacter/server/main.lua
and find characters[id] = {
(inside function SetupCharacters
)
Paste the following code above it.
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
Now it should look like the following image:

Step 2
Open file esx_multicharacter/client/main.lua
and find TriggerEvent("skinchanger:loadSkin", skin)
(inside function SetupCharacter
)
Replace the line with the following code:
if Characters[index].skin then
exports["rcore_clothing"]:setPlayerSkin(skin)
else
TriggerEvent("skinchanger:loadSkin", skin)
end
Now it should look like the following image:

Step 3
In the same file as step 2 (esx_multicharacter/client/main.lua
), find TriggerEvent("skinchanger:loadSkin", Characters[index].skin)
(inside function SetupCharacter
)
Replace the line with the following code:
exports["rcore_clothing"]:setPlayerSkin(Characters[index].skin)
Now it should look like the following image:

Step 4
Open file esx_multicharacter/server/main.lua
and find local DB_TABLES
.
Now add these entries to the DB_TABLES variable:
["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):
local DB_TABLES = { users = "identifier", ["rcore_clothing_current"] = "identifier", ["rcore_clothing_purchased"] = "identifier", ["rcore_clothing_outfits"] = "identifier", }
Last updated
Was this helpful?