wais_multichar
Step 1 - Config: detection
Config.Skinchanger =
Config.Appearance =Config.Skinchanger = GetResourceState('skinchanger') == 'started' and GetResourceState('illenium-appearance') ~= "started" and GetResourceState('fivem-appearance') ~= "started" and GetResourceState('rcore_clothing') ~= "started" and true or false or false or false or false
Config.Appearance = GetResourceState('rcore_clothing') == 'started' and 'rcore_clothing' or GetResourceState('illenium-appearance') == 'started' and 'illenium-appearance' or GetResourceState('fivem-appearance') == 'started' and 'fivem-appearance' or GetResourceState('codem-appearance') == 'started' and 'codem-appearance' or falseStep 2 - Server: get skin
Config.GetPlayerSkin = function(requiredId, cb)
if GetResourceState('rcore_clothing') == 'started' then
local skinData = exports["rcore_clothing"]:getSkinByIdentifier(requiredId)
if skinData then
cb(skinData.ped_model, skinData.skin)
else
cb(nil)
end
return
endStep 3 - Client: set ped clothing
Step 4 - Client: character creator
Step 5 - Client: character selected
Last updated