wais_multicharacter v2
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 -- ESX Frameworks are also for detecting skinchange usage. Don't touch it.
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 false -- Appearance name for the script to detect and use the appearance system.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
endConfig.SetPedClothing = function(ped, skin)
-- It is a function to load the clothes of the pads in the character menu.
if GetResourceState('rcore_clothing') == 'started' then
exports['rcore_clothing']:setPedSkin(ped, skin)
return
endLast updated