Inventory Items

This section includes the complete item list for the script, ready to be integrated into the most popular inventory systems. Each item is properly configured with its name, label, and parameters to ensure full compatibility and seamless functionality within your server’s inventory setup.


qs-inventory
['creditcard'] = {
    ['name'] = 'creditcard',
    ['label'] = 'Credit Card',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'creditcard.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = false,
    ['combinable'] = nil,
    ['description'] = 'Visa card, can be used via ATM',
    client = { export = 'qs-banking.CreateCard' }
},
qb-inventory
['creditcard'] 			 = {['name'] = 'creditcard', 					['label'] = 'Credit Card', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'creditcard.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Visa card, can be used via ATM'},

In case we want to see the item information, we will add the following case in qb-inventory/html/js/apps.js within the generateDescription function.

case "creditcard":
   var str = "" + itemData.info.cardNumber + "";
   var res = str.slice(12);
   var cardNumber = "************" + res;
   return `<p><strong>Card Owner: </strong><span>${itemData.info.ownerName}</span></p>
      <p><strong>Card Type: </strong><span>${itemData.info.cardType}</span></p>
      <p><strong>Card Number: </strong><span>${cardNumber}</span></p>`;
ox_inventory
['creditcard'] = {
    label = 'creditcard',
    weight = 1,
    stack = false,
    close = false,
    consume = 0,
    client = { export = 'qs-banking.CreateCard' }
},