For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom integration

How to integrate rcore_clothing with any multicharacter script.


Step 1 - Get the skin

Call getSkinByIdentifier with the character's identifier. Works on both client and server side.

Returns a table with ped_model and skin keys.

local skin = exports['rcore_clothing']:getSkinByIdentifier(identifier)

Step 2 - Set the skin

Apply the skin to the ped in the character selection screen.

exports['rcore_clothing']:setPedSkin(ped, skin)

Step 3 - Open the character creator

Your multichar likely already triggers one of these events for new characters:

TriggerEvent('esx_skin:resetFirstSpawn')
TriggerEvent('esx_skin:playerRegistered')
TriggerEvent('qb-clothes:client:CreateFirstCharacter')
TriggerEvent('rcore_clothing:openCharCreator')

Last updated