ZSX_Multicharacter
If you are using the ZSX_Multicharacter you need to desarrollate this integration with the script:
Client Side
Detect the appearance resource ZSX_Multicharacter/client/framework/framework_functions.lua
Find where the appearance resource is defined and add the following detection: Framework.AppereanceResource
GetResourceState('origen_clothing') == 'started' and 'origen_clothing'Apply the player skin SetSkin
Locate the SetSkin function or the if / elseif block that handles appearance systems: if (Framework.AppereanceResource == ... )
elseif Framework.AppereanceResource == 'origen_clothing' then
if skinData and skinData.skin then
exports['origen_clothing']:SetAppearance(ped, skinData.skin)
end Open the character creation menu OpenSkinMenu
Find the OpenSkinMenu function or the block that opens clothing/appearance menus: elseif Framework.AppereanceResource
elseif Framework.AppereanceResource == 'origen_clothing' then
local currentCoords = GetEntityCoords(PlayerPedId())
exports['origen_clothing']:startPedCreation(currentCoords, gender, PlayerPedId(), false, function()
if Config.Identity.SetInBucketOnAppearance then
TriggerServerEvent('ZSX_Multicharacter:Event:SetPlayerState', 'LOG_IN_USER')
end
if UserInterfaceActive then
exports[ZSX_UI]:HideUI(false)
end
HandleHud(false)
end)Server Side
Configure the appearance resource: ZSX_Multicharacter/server/functions/characters.lua
Make sure this variable exists local appearanceResource = Config.ForceAppereance and then paste the next code in the same line:
Convert and load the skin from the database: Characters.ConvertSkin
Locate the Characters.ConvertSkin function and the if / elseif block that handles appearance systems
Thanks for SYX Lucifer โค๏ธ
Last updated