um_multichar
In config.lua
Config.Clothing = 'rcore_clothing'
In config.lua
, find this code block and add the two lines prefixed with "+" (don't add the plus signs)
Config.ClothingExports = function(cacheped, skinData) -- If you don't have a custom event or export, leave this part
if Config.Clothing == 'illenium-appearance' then
exports['illenium-appearance']:setPedAppearance(cacheped, skinData)
elseif Config.Clothing == 'bl_appearance' then
exports.bl_appearance:SetPlayerPedAppearance(skinData)
+ elseif Config.Clothing == 'rcore_clothing' then
+ exports.rcore_clothing:setPedSkin(cacheped, skinData)
elseif Config.Clothing == 'fivem-appearance' then
exports['fivem-appearance']:setPedAppearance(cacheped, skinData)
elseif Config.Clothing == 'qb-clothing' then
TriggerEvent('qb-clothing:client:loadPlayerClothing', skinData, cacheped)
elseif Config.Clothing == 'crm-appearance' then
exports['crm-appearance']:crm_set_ped_appearance(cacheped, skinData)
elseif Config.Clothing == 'custom' then
Debug('You can add your own clothing exports here.')
end
end
In framework/getSkin.lua
, find this code block and add the lines prefixed with "+" (don't add the plus signs)
lib.callback.register("um-multicharacter:server:getSkin", function(_, cid)
if selectedClothingMenu == 'bl_appearance' then
local appearance = exports.bl_appearance:GetPlayerAppearance(cid)
if not appearance then
return nil, nil
end
return appearance.model, appearance
end
+ if selectedClothingMenu == 'rcore_clothing' then
+ local skin = exports.rcore_clothing:getSkinByIdentifier(cid)
+ if not skin then
+ return nil, nil
+ end
+ return skin.ped_model, skin.skin
+ end
local skinQuery = MySQL.single.await('SELECT * FROM playerskins WHERE citizenid = ? AND active = ? LIMIT 1',
{ cid, 1 })
if skinQuery ~= nil then
local skin = json.decode(skinQuery.skin)
return skinQuery.model or skin.model or nil, skin
end
return nil, nil
end)
Last updated