🧰Exports & Callbacks
From this page you can learn about many important exports and callbacks.
Get Source Skin & Apply Skin Callback
QB
QBCore.Functions.TriggerCallback('0r-clothing:getSkin:server', function(skin)
TriggerEvent('0r-clothing:client:loadPlayerClothing', skin, PlayerPedId())
end)
ESX
Core.TriggerServerCallback('0r-clothing:getSkin:server', function(skin)
TriggerEvent('0r-clothing:client:loadPlayerClothing', skin, PlayerPedId())
end)
Open Character Creation Menu
TriggerEvent('0r-clothing:openCharacterCreationMenu')
Open Clothing Store Menu
exports["0r-clothing"]:openClothStore("clothing")
exports["0r-clothing"]:openClothStore("barber")
exports["0r-clothing"]:openClothStore("tattoo")
Wear On & Off Clothes
-- Mask
TriggerEvent('0r-clothing:wearOnOff:client', 'masks')
-- Hair
TriggerEvent('0r-clothing:wearOnOff:client', 'hair')
-- Arms & Gloves
TriggerEvent('0r-clothing:wearOnOff:client', 'arms')
-- Pants
TriggerEvent('0r-clothing:wearOnOff:client', 'pants')
-- Shoes
TriggerEvent('0r-clothing:wearOnOff:client', 'shoes')
-- Undershirt
TriggerEvent('0r-clothing:wearOnOff:client', 'undershirt')
-- Vest
TriggerEvent('0r-clothing:wearOnOff:client', 'vest')
-- Torso
TriggerEvent('0r-clothing:wearOnOff:client', 'torso')
-- Hat
TriggerEvent('0r-clothing:wearOnOff:client', 'hat')
-- Glass
TriggerEvent('0r-clothing:wearOnOff:client', 'glass')
-- Ear
TriggerEvent('0r-clothing:wearOnOff:client', 'ear')
-- Watch
TriggerEvent('0r-clothing:wearOnOff:client', 'watch')
-- Bracelet
TriggerEvent('0r-clothing:wearOnOff:client', 'bracelet')
Last updated