ox_inventory
Add the gg_boosting items, the Digi Scanner and the images to ox_inventory.
1. Add the items
Open ox_inventory/data/items.lua and paste these entries inside the table, above its last }. Do not replace the whole file.
['gg_boosting_tablet'] = {
label = 'Boosting Tablet',
weight = 1000,
stack = false,
close = true,
description = 'A tablet for boosting contracts.',
},
['gg_tracker_scrambler'] = {
label = 'Tracker Scrambler',
weight = 1000,
stack = false,
close = true,
description = 'Disables the GPS tracker on a boosted car.',
},
['gg_rattle_can'] = {
label = 'Rattle Can',
weight = 100,
stack = true,
close = true,
description = 'Quickly give your boost a new coat.',
},
['gg_signal_jammer'] = {
label = 'Signal Jammer',
weight = 1000,
stack = false,
close = true,
description = 'Block tower signals by using this item near a tower.',
},
['gg_wire_cutters'] = {
label = 'Wire Cutters',
weight = 1000,
stack = false,
close = true,
description = 'Cut the wires within the vehicle to stop alarms.',
},
['gg_boost_plate'] = {
label = 'Stolen Plate',
weight = 1000,
stack = false,
close = true,
description = 'Plate from a local vehicle.',
},
Important Paste the entries as shown. Do not add
consume(not evenconsume = 0), or aclientblock withstatus,usetimeorexport. Any of these stops ox_inventory from handing the item to the script, so the tablet and the task items do nothing and no error shows.
2. Add the Digi Scanner
Open ox_inventory/data/weapons.lua. If it has no WEAPON_DIGISCANNER entry, paste this inside the Weapons = { table, not the Components or Ammo table.
['WEAPON_DIGISCANNER'] = {
label = 'Digi Scanner',
weight = 1000,
durability = 1.0,
},
3. Add the images
Copy every PNG from gg_boosting/!SETUP/IMAGES into ox_inventory/web/images. ox_inventory already ships WEAPON_DIGISCANNER.png.
4. Restart
Restart your server so ox_inventory loads the new items.
