if Config.Clothes == 'rcore_clothing' then
exports.rcore_clothing:setPedSkin(createdPeds[citizenid], characterData)
elseif Config.Clothes == 'fivem-appearance' then
exports['fivem-appearance']:setPedAppearance(createdPeds[citizenid], characterData)
if (Config.Clothes == 'rcore_clothing') then
local skin = exports.rcore_clothing:getSkinByIdentifier(cid)
cb({
model = skin.ped_model,
skin = skin.skin,
})
return
end
local defaultSkin = Appearance[Config.Clothes] or Appearance['default']
skin = defaultSkin[playerData.sex or 'm']
if (Config.Clothes == 'rcore_clothing') then
local skin = exports.rcore_clothing:getSkinByIdentifier(cid)
cb({
model = skin.ped_model,
skin = skin.skin,
})
elseif (Config.Clothes == "default") then