esx_multicharacter (old)
Integration guide for esx_multicharacter below v1.10.9.
Step 1 - Server: inject skin data
Open esx_multicharacter/server/main.lua and find characters[id] = { inside SetupCharacters.
Paste this 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
endStep 2 - Client: load skin in SetupCharacter
Open esx_multicharacter/client/main.lua and find TriggerEvent("skinchanger:loadSkin", skin) inside SetupCharacter.
Replace with:
Step 3 - Client: load skin on character select
In the same file, find TriggerEvent("skinchanger:loadSkin", Characters[index].skin) inside SetupCharacter.
Replace with:
Step 4 - Server: register database tables
Open esx_multicharacter/server/main.lua and find local DB_TABLES.
Add these entries:
Result should look like:
Last updated