Installation Guide
Follow these steps for flawless installation
Download the script from your keymaster.
Place the script into your server resource folder:
FXServer\server-data\resources\fivecode_clothingWrite the script into your server.cfg:
ensure fivecode_clothingSetup your inventory - ox, qb, qs, ps, codem, core, origen, tgiann:
ox
Add the following into:
ox_inventory\modules\items\client.lua
Item('mask', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'mask')
end)
Item('helmet', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'helmet')
end)
Item('glasses', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'glasses')
end)
Item('ear', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'ear')
end)
Item('chain', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'chain')
end)
Item('watches', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'watches')
end)
Item('bracelet', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'bracelet')
end)
Item('tshirt', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'tshirt')
end)
Item('vest', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'vest')
end)
Item('jacket', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'jacket')
end)
Item('decals', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'decals')
end)
Item('bag', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'bag')
end)
Item('gloves', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'gloves')
end)
Item('pants', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'pants')
end)
Item('shoes', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'shoes')
end)
Item('top', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot, 'top')
end)
Item('outfit', function(data, slot)
TriggerEvent('fivecode_clothing:useOutfit', slot)
end)And this into:
ox_inventory\data\items.lua
['mask'] = {
label = 'Mask',
weight = 10,
stack = false,
close = true,
},
['helmet'] = {
label = 'Helmet',
weight = 10,
stack = false,
close = true,
},
['glasses'] = {
label = 'Glasses',
weight = 10,
stack = false,
close = true,
},
['ear'] = {
label = 'Ear',
weight = 10,
stack = false,
close = true,
},
['chain'] = {
label = 'Chain',
weight = 10,
stack = false,
close = true,
},
['watches'] = {
label = 'Watches',
weight = 10,
stack = false,
close = true,
},
['bracelet'] = {
label = 'Bracelet',
weight = 10,
stack = false,
close = true,
},
['tshirt'] = {
label = 'Tshirt',
weight = 10,
stack = false,
close = true,
},
['vest'] = {
label = 'Vest',
weight = 10,
stack = false,
close = true,
},
['jacket'] = {
label = 'Jacket',
weight = 10,
stack = false,
close = true,
},
['decals'] = {
label = 'Decals',
weight = 10,
stack = false,
close = true,
},
['bag'] = {
label = 'Bag',
weight = 10,
stack = false,
close = true,
},
['gloves'] = {
label = 'Gloves',
weight = 10,
stack = false,
close = true,
},
['pants'] = {
label = 'Pants',
weight = 10,
stack = false,
close = true,
},
['shoes'] = {
label = 'Shoes',
weight = 10,
stack = false,
close = true,
},
['top'] = {
label = 'Top',
weight = 10,
stack = false,
close = true,
},
['outfit'] = {
label = 'Outfit',
weight = 10,
stack = false,
close = true,
},qb
Add the following into:
qb-core\shared\items.lua
mask = {name = 'mask', label = 'Mask', weight = 10, type = 'item', image = 'mask.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
helmet = {name = 'helmet', label = 'Helmet', weight = 10, type = 'item', image = 'helmet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
glasses = {name = 'glasses', label = 'Glasses', weight = 10, type = 'item', image = 'glasses.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
ear = {name = 'ear', label = 'Ear', weight = 10, type = 'item', image = 'ear.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
chain = {name = 'chain', label = 'Chain', weight = 10, type = 'item', image = 'chain.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
watches = {name = 'watches', label = 'Watches', weight = 10, type = 'item', image = 'watches.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
bracelet = {name = 'bracelet', label = 'Bracelet', weight = 10, type = 'item', image = 'bracelet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
tshirt = {name = 'tshirt', label = 'Tshirt', weight = 10, type = 'item', image = 'tshirt.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
vest = {name = 'vest', label = 'Vest', weight = 10, type = 'item', image = 'vest.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
jacket = {name = 'jacket', label = 'Jacket', weight = 10, type = 'item', image = 'jacket.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
decals = {name = 'decals', label = 'Decals', weight = 10, type = 'item', image = 'decals.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
bag = {name = 'bag', label = 'Bag', weight = 10, type = 'item', image = 'bag.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
gloves = {name = 'gloves', label = 'Gloves', weight = 10, type = 'item', image = 'gloves.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
pants = {name = 'pants', label = 'Pants', weight = 10, type = 'item', image = 'pants.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
shoes = {name = 'shoes', label = 'Shoes', weight = 10, type = 'item', image = 'shoes.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
top = {name = 'top', label = 'Top', weight = 10, type = 'item', image = 'top.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
outfit = {name = 'outfit', label = 'Outfit', weight = 10, type = 'item', image = 'outfit.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},Skip the step bellow if you are using qb-inventory v2.
And this to:
qb-inventory/html/js/app.js
New:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
return `
<p><strong>${itemData.label}</strong></p>
<p>${itemData.description}</p>
<p><strong>Number: </strong><span>${itemData.info.clothNumber}</span></p>
<p><strong>Color: </strong><span>${itemData.info.clothColor}</span></p>
`;
}
Old:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
$(".item-info-title").html(`<p>${itemData.label}</p>`);
$(".item-info-description").html(`<p>${itemData.description}</p>`);
$(".item-info-line").html(`
<p><b>Number: </b>${itemData.info.clothNumber}</p>
<p><b>Color: </b>${itemData.info.clothColor}</p>
`);
}qs
Add the following into:
qs-inventory\shared\items.lua
['mask'] = {name = 'mask', label = 'Mask', weight = 10, type = 'item', image = 'mask.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['helmet'] = {name = 'helmet', label = 'Helmet', weight = 10, type = 'item', image = 'helmet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['glasses'] = {name = 'glasses', label = 'Glasses', weight = 10, type = 'item', image = 'glasses.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['ear'] = {name = 'ear', label = 'Ear', weight = 10, type = 'item', image = 'ear.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['chain'] = {name = 'chain', label = 'Chain', weight = 10, type = 'item', image = 'chain.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['watches'] = {name = 'watches', label = 'Watches', weight = 10, type = 'item', image = 'watches.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['bracelet'] = {name = 'bracelet', label = 'Bracelet', weight = 10, type = 'item', image = 'bracelet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['tshirt'] = {name = 'tshirt', label = 'Tshirt', weight = 10, type = 'item', image = 'tshirt.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['vest'] = {name = 'vest', label = 'Vest', weight = 10, type = 'item', image = 'vest.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['jacket'] = {name = 'jacket', label = 'Jacket', weight = 10, type = 'item', image = 'jacket.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['decals'] = {name = 'decals', label = 'Decals', weight = 10, type = 'item', image = 'decals.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['bag'] = {name = 'bag', label = 'Bag', weight = 10, type = 'item', image = 'bag.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['gloves'] = {name = 'gloves', label = 'Gloves', weight = 10, type = 'item', image = 'gloves.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['pants'] = {name = 'pants', label = 'Pants', weight = 10, type = 'item', image = 'pants.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['shoes'] = {name = 'shoes', label = 'Shoes', weight = 10, type = 'item', image = 'shoes.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['top'] = {name = 'top', label = 'Top', weight = 10, type = 'item', image = 'top.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
['outfit'] = {name = 'outfit', label = 'Outfit', weight = 10, type = 'item', image = 'outfit.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},And this into:
qs-inventory\config\metadata.js
New:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
return `
<p><strong>${itemData.label}</strong></p>
<p><strong>Description: </strong><span>${itemData.description}</span></p>
<p><strong>Number: </strong><span>${itemData.info.clothNumber}</span></p>
<p><strong>Color: </strong><span>${itemData.info.clothColor}</span></p>
`;
}
Old:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
$(".item-info-title").html(`<p>${itemData.label}</p>`);
$(".item-info-description").html(`<p>${itemData.description}</p>`);
$(".item-info-line").html(`
<p><b>Number: </b>${itemData.info.clothNumber}</p>
<p><b>Color: </b>${itemData.info.clothColor}</p>
`);
}Disable qs-inventory default clothing system:
qs-inventory\config\config.lua
Config.Clothing = falseps
Add the following into:
qb-core\shared\items.lua
mask = {name = 'mask', label = 'Mask', weight = 10, type = 'item', image = 'mask.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
helmet = {name = 'helmet', label = 'Helmet', weight = 10, type = 'item', image = 'helmet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
glasses = {name = 'glasses', label = 'Glasses', weight = 10, type = 'item', image = 'glasses.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
ear = {name = 'ear', label = 'Ear', weight = 10, type = 'item', image = 'ear.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
chain = {name = 'chain', label = 'Chain', weight = 10, type = 'item', image = 'chain.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
watches = {name = 'watches', label = 'Watches', weight = 10, type = 'item', image = 'watches.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
bracelet = {name = 'bracelet', label = 'Bracelet', weight = 10, type = 'item', image = 'bracelet.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
tshirt = {name = 'tshirt', label = 'Tshirt', weight = 10, type = 'item', image = 'tshirt.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
vest = {name = 'vest', label = 'Vest', weight = 10, type = 'item', image = 'vest.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
jacket = {name = 'jacket', label = 'Jacket', weight = 10, type = 'item', image = 'jacket.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
decals = {name = 'decals', label = 'Decals', weight = 10, type = 'item', image = 'decals.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
bag = {name = 'bag', label = 'Bag', weight = 10, type = 'item', image = 'bag.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
gloves = {name = 'gloves', label = 'Gloves', weight = 10, type = 'item', image = 'gloves.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
pants = {name = 'pants', label = 'Pants', weight = 10, type = 'item', image = 'pants.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
shoes = {name = 'shoes', label = 'Shoes', weight = 10, type = 'item', image = 'shoes.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
top = {name = 'top', label = 'Top', weight = 10, type = 'item', image = 'top.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},
outfit = {name = 'outfit', label = 'Outfit', weight = 10, type = 'item', image = 'outfit.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = ''},And this to:
ps-inventory/html/js/app.js
New:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
return `
<p><strong>${itemData.label}</strong></p>
<p><strong>Description: </strong><span>${itemData.description}</span></p>
<p><strong>Number: </strong><span>${itemData.info.clothNumber}</span></p>
<p><strong>Color: </strong><span>${itemData.info.clothColor}</span></p>
`;
}
Old:
} else if (["mask", "helmet", "glasses", "ear", "chain", "watches", "bracelet", "tshirt", "vest", "jacket", "decals", "bag", "gloves", "pants", "shoes", "outfit", "top"].includes(itemData.name)) {
$(".item-info-title").html(`<p>${itemData.label}</p>`);
$(".item-info-description").html(`<p>${itemData.description}</p>`);
$(".item-info-line").html(`
<p><b>Number: </b>${itemData.info.clothNumber}</p>
<p><b>Color: </b>${itemData.info.clothColor}</p>
`);
}Configure everything to your liking in config.lua.
Restart your inventory script and start fivecode_clothing, or restart your server.
Enjoy the script!
[Optional] If you want to have item images in your inventory, go into the folder bellow and copy the images into your inventory:
fivecode_clothing/Installation #8 - Images-ox_inventory\web\images-qb-inventory\html\images-qs-inventory\html\images-ps-inventory\html\images-codem-inventory\html\itemimages-core_inventory\html\img-origen_inventory\html\images-tgiann-inventory\inventory_images/images
If you need help with anything else, do not hesitate and open a support ticket in our discord.
Last updated
Was this helpful?