zr_multichar

In zr-config/zr-config.lua, set zr_config.clothing = 'rcore_clothing'

In zr-config/zr-build-c.lua, find exports['illenium-appearance']:setPedAppearance(zr_current_char, zr_skin)

And replace it with

        exports['illenium-appearance']:setPedAppearance(zr_current_char, zr_skin)
    elseif (zr_config.clothing=='rcore_clothing') then
        exports.rcore_clothing:setPedSkin(zr_current_char, zr_skin)

In zr-config/zr-build-s.lua, find elseif (zr_config.clothing=='illenium-appearance') then

And replace it with

        elseif (zr_config.clothing=='rcore_clothing') then
            local skin = exports.rcore_clothing:getSkinByIdentifier(cid)
            if not skin then
                cb(nil)
            else
                cb(skin.ped_model, json.encode(skin.skin))
            end
        elseif (zr_config.clothing=='illenium-appearance') then

Find if zr_data.skin then

And replace it with

    if GetResourceState('rcore_clothing') == "started" then
        local skin = exports["rcore_clothing"]:getSkinByIdentifier(zr_data.identifier)

        if skin and skin.ped_model then
            zr_multichar_loadModel(skin.ped_model)
            SetPlayerModel(PlayerId(), skin.ped_model)
            SetModelAsNoLongerNeeded(skin.ped_model)
            exports.rcore_clothing:setPedSkin(PlayerPedId(), skin.skin)
        end
    elseif zr_data.skin then 

Last updated