Get started
Items and inventory
The script uses two items of its own. Everything else it makes or takes (weapons, ammo, armor, money) is an item or account that your server already has.
Put charged_battery.png and solar_panel.png into your inventory's image folder.
01QBCore / QBox
Added automatically on start. To add them by hand, qb-core/shared/items.lua:
charged_battery = { name = 'charged_battery', label = 'Charged Battery', weight = 2500, type = 'item', image = 'charged_battery.png', unique = false, useable = false, shouldClose = true, description = 'Powers the bunker production lines.' },solar_panel = { name = 'solar_panel', label = 'Solar Panel', weight = 6000, type = 'item', image = 'solar_panel.png', unique = false, useable = true, shouldClose = true, description = 'Place it outdoors; it charges a battery over time.' },The solar panel is registered as a usable item by the script.
02ESX
Added to the items table automatically; restart once after the first start. By hand:
INSERT IGNORE INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('charged_battery', 'Charged Battery', 3, 0, 1), ('solar_panel', 'Solar Panel', 6, 0, 1);03ox_inventory
ox_inventory/data/items.lua (also in install/items/ox_inventory.lua):
['charged_battery'] = { label = 'Charged Battery', weight = 2500, stack = true, close = true, description = 'Powers the bunker production lines.',}, ['solar_panel'] = { label = 'Solar Panel', weight = 6000, stack = true, close = true, consume = 0, -- the item is removed when the panel is placed, not when it is used description = 'Place it outdoors; it charges a battery over time.', client = { event = 'uniqers-bunker:client:placeSolarPanel', },},04Dirty money
The laundering machine finds your dirty money by itself (Config.Laundry.dirtyMoney.type = 'auto'):
If your ox_inventory server has no dirty money item yet, install/items/ox_inventory.lua has a black_money entry you can paste.
05Item pictures in the panel
The station recipes and the admin item picker show pictures from your inventory. Config.ItemImages.path = 'auto' uses the first running inventory it knows: ox_inventory, qs-inventory, ps-inventory, lj-inventory, qb-inventory, tgiann-inventory, codem-inventory, origen_inventory or core_inventory. Set a path of your own such as 'nui://my_inventory/html/images/%s.png', or false for icons only.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord