Installation
- Download
fusing-weaponbench.pack.zipfrom your Cfx.re account (Portal → Assets / Granted Assets). - Unzip it and rename the folder from
fusing-weaponbench.packtofusing-weaponbench. - Keep every file in it, including the
.fxapfile. - Add
ensure fusing-weaponbenchtoserver.cfgafter your framework and the requirements.
Start it after your framework, inventory, oxmysql and fusing-gizmo:
ensure oxmysql
ensure fusing-gizmo
ensure fusing-weaponbench
The database table and the weapon_bench item are made on first start. On ESX, restart once more so the item loads.
Item
Copy install/weapon_bench.png into your inventory's image folder (for qb-inventory, qb-inventory/html/images).
To list the item permanently, copy the line for your framework from install/items.lua:
weapon_bench = { name = 'weapon_bench', label = 'Weapon Bench', weight = 20000, type = 'item', image = 'weapon_bench.png', unique = true, useable = true, shouldClose = true, description = 'A workbench for fitting parts to your guns. Put it down where you want it.' },
For ESX, the row for the items table is in the same file.
Permissions
add_ace group.admin fusingweaponbench.admin allow
Admins can place any number of benches and remove anyone's.