Installation
-
Install the dependencies
These must be started before the inventory:oxmysql- your framework (
es_extendedorqb-core) koja-lib
oxmysqlandkoja-libas dependencies, so the resource will not start without them. -
Stop your old inventory
Only one inventory can run. Removeensure ox_inventory(orqb-inventory,qs-inventoryand so on) fromserver.cfg. If you come from ox_inventory, keep itsdata/folder: it is imported automatically. See Migrating from ox_inventory. -
Add the resource
Put thekoja-inventory-v2folder in your resources directory. The folder name is the resource name and the name used by exports, so do not rename it. -
Edit server.cfg
server.cfgensure oxmysql ensure es_extended # or qb-core ensure koja-lib ensure koja-inventory-v2 ensure ox_inventory # only the bridge, see below -
Give admins access
Admin commands and the/invadminpanel are allowed for the ACEcommand.koja-inventory-v2and for the framework groups inConfig.AdminGroups(admin,superadmin,godby default).server.cfgadd_ace group.admin command.koja-inventory-v2 allow -
Database
Nothing to import. On start the resource creates one table,koja_inventory_v2, that holds every inventory (players, slots, backpacks, stashes, trunks, gloveboxes). If you used the olderkoja_grid_inventorybuild, its table is renamed tokoja_inventory_v2automatically on the first start. See Database. -
Item images
Images are read fromConfig.ImagePath(defaultimages/, which isweb/build/images/<item>.png). The release already contains images for the default items. You can point the path at another resource, for examplenui://ox_inventory/web/images/. Items without an image show a category icon. -
Start and check the console
On start the console prints a banner with the version, framework, koja-lib version, database status, item count (and how many came from ox), shops, stashes, benches, admin locations, enabled features and detected integrations (ox compatibility, target, appearance). If a line saysofffor something you use, check that the resource is started before the inventory.
First-run checklist
- The banner shows
Database connectedand no red errors. - The item count includes your ox items (
Items ... (ox N)). - Join and press
TAB. The inventory opens and your old items are there. - Type
/invkitas an admin. You get the showcase kit. - Open a trunk, drop an item, open a shop and craft something at a bench.
- Open
/invadminand check the Locations tab lists your shops, stashes and benches. - Set
Config.Localeto your server language. See Translations.