Codem Inventory Support
This Is Codem Inventory Support Docs Please Follow The Step
Install
Add the item images to your inventory script
[qb] > codem-inventory > html > itemimages
QBShared Items
[qb] > qb-core > shared > items.lua
-- Kael Organs
['organcooler'] = {['name'] = 'organcooler', ['label'] = 'Cooler Box', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'coolerbox.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A Cooler Box For Trasfering Organs'},
['organbox'] = {['name'] = 'organbox', ['label'] = 'Organ Cooler Box', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'organbox.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A Cooler Box With Organ'},
['trojan_usb'] = {['name'] = 'trojan_usb', ['label'] = 'Trojan USB', ['weight'] = 0, ['type'] = 'item', ['image'] = 'usb_device.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Handy software to shut down some systems'},
['chloroform'] = {['name'] = 'chloroform', ['label'] = 'Chloroform Bottle', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'chloroform.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A Bottle Of Chloroform'},
Add This In Codem Inventory
[YourFolder] > config > metadata.js
} else if (item.name.match("organbox")) {
let infoData = [
{ label: "Name", value: iteminfo.name },
{ label: "Description", value: iteminfo.description },
{ label: 'BloodType: ', value: iteminfo.bloodtype },
{ label: 'Status: ', value: iteminfo.status },
];
returnString = infoData;
Last updated