🧠INSTALLATION
To install items, follow these steps:
Navigate to
ox_inventory/data/items.lua
.Add the item definitions provided above to the
items.lua
file.For item images, place the corresponding images in the
ox_inventory/web/images
directory.
Items Preconfigured
Register Item in Ox Inventory
['credit_card'] = {
label = 'Credit Card',
weight = 40,
stack = false,
description = 'A standard credit card used for transactions.'
},
['fake_credit_card'] = {
label = 'Fake Credit Card',
weight = 40,
stack = false,
description = 'A counterfeit credit card, looks real but is fake.'
},
['battery_printer'] = {
label = 'Battery 3D Printer',
weight = 1000,
stack = true,
description = 'A battery for recharger a Printer 3D'
},
['tool_hack_cooldown'] = {
label = 'Cooldown Reduction',
weight = 1000,
stack = false,
degrade = 15,
decay = true,
description = 'A tool used to reduce the cooldown of hacking attempts.',
client = {
export = 'LGF_Banking.ToolRemoveCoolDown',
}
},
['tool_3dprint'] = {
label = 'Printer 3D',
weight = 3000,
stack = false,
description = 'A Printer 3D for crafting Tools.',
client = {
export = 'LGF_Banking.ToolCraftingItems',
}
},
['tool_3dprint_delprinter'] = {
label = 'Provider Printer Wipe',
weight = 3000,
stack = false,
description = 'A tool for remove Printer 3D with yur serial.',
},
['tool_steal_npcmoney'] = {
label = 'Provider Steal Money',
weight = 3000,
stack = false,
description = 'A tool for steal money from ped.',
},
['stealing_card'] = {
label = 'Civil Credit Card',
weight = 20,
stack = false,
description = 'A Credit Card Stealed by a civik.',
},
Banking SQL
CREATE TABLE IF NOT EXISTS `lgf_banking` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`pin` varchar(255) NOT NULL,
`last_updated` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
Printer SQL
CREATE TABLE IF NOT EXISTS `lgf_printer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`serialNumber` longtext NOT NULL,
`batteryStatus` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
Last updated