Installation

  1. Download fusing-weaponbench.pack.zip from your Cfx.re account (Portal → Assets / Granted Assets).
  2. Unzip it and rename the folder from fusing-weaponbench.pack to fusing-weaponbench.
  3. Keep every file in it, including the .fxap file.
  4. Add ensure fusing-weaponbench to server.cfg after 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.