The system allows for easy management of clothing using items, enabling players to store and organize their acquired pieces of clothing for quick access and outfit changes. It ensures that players have a convenient way of changing and combining their clothes within the game.
Please report any problems by creating a new issue or join the Discord server.
Also feel free to make a PR.
ensure clothing
to your server.cfg['clothes'] = {
label = 'Clothes',
weight = 100,
stack = false,
allowArmed = false,
client = {
export = 'clothing.clothes'
},
buttons = {
{
label = 'Tear',
action = function(slot)
TriggerServerEvent('clothing:sv:tearClothes', slot)
end
}
}
},
['outfit'] = {
label = 'Outfit',
stack = false,
client = {
export = 'clothing.clothes'
},
buttons = {
{
label = 'Rename',
action = function(slot)
TriggerServerEvent('clothing:sv:renameOutfit', slot)
end
},
{
label = 'Tear',
action = function(slot)
TriggerServerEvent('clothing:sv:tearClothes', slot)
end
}
}
},
isWearingOutfit(name)
- returns outfit name and outfit label or falseisWearing(index)
- returns component and texture or falseisWearingProp(index)
- returns prop and texture or falseisNaked()
- returns true if player doesn't have any clothes based on the configgetPedSex(ped)
- returns 'Male' or 'Female' regarding the ped gender