Adding a clothing item#
Item names used : ‘tshirt’ , ‘torso’ , ‘pants’ , ‘shoes’ , ‘armour’ , ‘helmet’ , ‘mask’ , ‘glasses’
exports['bp_inventory']:AddItem(source, itemname, amount, {['drawable'] = 23 , ['texture'] = 2}, slot)
Config_items.lua Clothing settings#
With this setting you can adjust your clothing system.
- esx_skin -> automatic setting for this system.
- qb-clothing -> automatic setting for this system.
- others - > redirection for other clothing systems. You can see this in the config_items.lua > otherclothingsystems function.
TriggerEvent("bp_inventory:autoclothebuy", newskin, oldskin, isfirst)
You can use the event you see above in the buy section of your clothing system.
- newskin : indicates the newly determined skin data.
- oldskin : specifies the old skin data (you can make it false)
- isfirst : is the character being created for the first time? (true,false)
Refresh clothes (resetup)#
With this event, you can renew the character's clothes again (can be used at the exit of the clothes shop or at the first entrance)
TriggerEvent('bp_inventory:refreshclothe')