Skip to content
FIVECRATE
Frameworks intermediate

How to Install ox_inventory on Qbox, ESX or QBCore

How to install ox_inventory: dependencies, the release zip, convars and start order for Qbox and ESX, why QBCore is unsupported, and first-start error fixes.

Author: FiveCrate
Published:
Updated:
Read time: 17 min
Applies to
ox_inventory v2.48.1 (October 24, 2026) with ox_lib v3.42.2 and oxmysql v2.14.4; Qbox (qbx_core v1.24.1, October 30, 2026) and ESX Legacy 1.16.4 (October 18, 2026); FiveM Legacy and FiveM for GTAV Enhanced (ox_inventory's docs do not mention Enhanced); QBCore is not a supported framework
Last verified

Direct Answer

To install ox_inventory, set up oxmysql and ox_lib first, then download ox_inventory.zip from the latest GitHub release (not the “Source code” archive) and extract it into your resources folder as ox_inventory. In server.cfg, start oxmysql, then ox_lib, then your framework, then ox_target if you use it, then ox_inventory, before any script that uses it. On Qbox, add setr inventory:framework "qbx" before the resources start. ESX Legacy 1.16.4 configures itself, but remove its bundled esx_inventory. Restart: ox_inventory creates its own database table. QBCore is not a supported framework, so QBCore servers move to Qbox to run it.

What ox_inventory needs before you install it

ox_inventory is Overextended’s “slot-based inventory with item metadata”. It replaces the inventory of the framework it runs on: items, stashes, trunks, gloveboxes, shops and weapons all go through it, with weapons treated as items. At the time of writing (December 2, 2026) the latest release is v2.48.1, published on October 24, 2026, and this guide follows that version.

Its manifest and its start-up file check these requirements:

RequirementMinimumNotes
oxmysql2.7.3Latest release v2.14.4, November 26, 2026
ox_lib3.36.4Latest release v3.42.2, November 7, 2026
FXServerbuild 6116Declared as /server:6116 in fxmanifest.lua
OneSyncEnabledDeclared as /onesync, which the Cfx.re docs describe as “state awareness” not being disabled
Frameworkox_core, ESX, Qbox or ND CoreThe four bridges that ship with ox_inventory
ox_targetOptionalNeeded only for target-based stashes and shops

The oxmysql and ox_lib minimums are checked by ox_inventory’s init.lua, together with whether ox_lib loaded and whether the screen is built; the build, OneSync and resource rows are dependencies entries in the manifest instead. When one of the init.lua checks fails, ox_inventory does not half-start. It throws the error, repeats it in the console every 10 seconds, and rejects players who try to connect with the same text. That makes a broken install easy to spot: read the first red line from ox_inventory after a restart.

The txAdmin recipes for ESX Legacy and Qbox both set $onesync: on, so a recipe-deployed server already meets the OneSync requirement.

Which frameworks ox_inventory supports

The ox_inventory README lists four supported frameworks, and the inventory:framework convar selects the bridge that connects to one of them. The convar’s default in the code is esx.

Frameworkinventory:frameworkWho sets itBridge checks for
QboxqbxYou, or the Qbox recipe’s ox.cfgqbx_core 1.18.1+ and qbx_vehicles 1.2.0+
ESX Legacyesxes_extended, automaticallyes_extended 1.6.0+
ox_coreoxYouox_core 0.21.3+
ND CorendYouND_Core 2.0.0+
QBCoreNoneNot supportedNot supported
No frameworkNoneA bridge you writeNot supported

QBCore. It is not on the README’s list, and there is no qb value. The ox_inventory Qbox page says “We strongly advise using Qbox as an alternative to QBCore”, and QBCore’s own documentation now says “QBCore has withdrawn from other platforms”. A QBCore server either keeps qb-inventory or moves to Qbox; the comparison further down covers both.

Servers without a framework. Racing, drift, PvP and freeroam servers built from the FiveM Basic Server or vMenu recipes have no player framework for ox_inventory to attach to. The docs answer that case directly: “If your framework does not have official support you’ll have to implement it yourself.” That means copying the ox bridge folder under a new name, setting inventory:framework to that name, and pointing the database module at your own player and vehicle tables. The docs add “we can’t provide any help here”, so plan for development work, not an install.

If you are still choosing a framework, the Qbox, ESX and QBCore comparison covers that decision first.

How to install ox_inventory step by step

These steps apply to every supported framework. The Qbox and ESX sections below add what differs.

  1. Install the database and the two dependencies. oxmysql needs a working mysql_connection_string line; if you have no database yet, follow the MariaDB setup guide. Then add ox_lib. Both come as release zips, oxmysql.zip and ox_lib.zip, which is also how the Qbox recipe downloads them. Use the ox_lib release zip rather than its source: the README lists cfxlua-require as a dependency that is “included in release”.

  2. Download the release build of ox_inventory. The README’s download link is https://github.com/overextended/ox_inventory/releases/latest/download/ox_inventory.zip. The inventory screen is written in React and has to be bundled before FiveM can show it, and the Common Issues page is explicit: “Make sure you download the ox_inventory.zip file as that one contains the bundled files and others are raw source code.” Only if you plan to edit the screen do you build it yourself, with Git and bun:

    git clone https://github.com/overextended/ox_inventory.git
    cd ox_inventory/web
    bun i
    bun run build
  3. Extract it as resources/ox_inventory. Keep that exact folder name. es_extended looks for a resource called ox_inventory, and the default image path is nui://ox_inventory/web/images. Grouping it in a bracket folder such as resources/[ox], as the Qbox recipe does, is fine. The folder must contain fxmanifest.lua and web/build/index.html; ox_inventory checks for the second file at every start.

  4. Add the convars. ox_inventory has no config file: settings are convars in server.cfg, and the comment at the top of its init.lua says not to edit that file. Settings the game client also reads use setr, which the Cfx.re docs describe as a server replicated convar, “available on the client side to get the value”. Server-only settings use set. Put them above the lines that start resources. The main convars are listed in the reference table below.

  5. Set the start order. This is the order from the official docs, with your framework’s resource name in place of framework:

    start oxmysql # this should be one of the first resources
    start ox_lib
    start framework # the name of your framework (i.e. ox_core, es_extended, qbx_core)
    start ox_target
    start ox_inventory

    ensure works in place of start: it starts a resource, or restarts it if it is already running. ox_inventory’s manifest lists oxmysql and ox_lib under dependencies, which the Cfx.re docs define as resources required “to load before the current resource”. ox_target is optional, but if you turn on inventory:target, it has to start before ox_inventory.

  6. Restart the server and read the console. There is no SQL file to import. On its first start, ox_inventory creates an ox_inventory table for stashes when none exists, adds an inventory column to your framework’s player table and glovebox and trunk columns to its vehicle table. When the item list is ready, the console shows Inventory has loaded <count> items.

  7. Join and test. The default keys are F2 for your inventory, K for the secondary inventory and TAB for the hotbar. Give yourself an item with /giveitem, which is restricted to group.admin. Defining your own items, images and usable effects is covered in how to add items to ox_inventory.

Install ox_inventory on Qbox

The Qbox team builds its resources around Overextended’s: the ox_inventory Qbox page says it is “converting resources to support our resources (mainly ox_lib and ox_inventory)”. The easiest install is therefore the Qbox recipe itself. Its installation page says “We highly recommend using txAdmin to install your FiveM server”; in the deployer you pick Popular Recipes, then QBox Framework. The txAdmin recipe guide walks through the deployer.

The database must be MariaDB. Qbox’s page states “MySQL is not supported”, “XAMPP IS NOT SUPPORTED” and a minimum of MariaDB 10.9.0.

What the recipe does for ox_inventory:

  • Downloads ox_inventory.zip from the latest release and unzips it into resources/[ox], next to ox_lib, ox_target, oxmysql and ox_doorlock.
  • Replaces ox_inventory/data/items.lua with Qbox’s own item list and copies the qbx_invimages pictures into ox_inventory/web/images.
  • Ships an ox.cfg with its inventory settings, loaded from server.cfg by exec ox.cfg. Its first inventory line is setr inventory:framework "qbx".
  • Starts the resources in this order: ensure ox_lib, ensure qbx_core, ensure ox_target, then ensure [ox], which includes ox_inventory.

Its ox.cfg changes several defaults:

Convarox_inventory defaultQbox recipe
inventory:weight30000 grams85000
inventory:targetfalsetrue
inventory:keysF2, K, TABTAB, K, F1
inventory:policepolice, sheriffpolice, bcso, sasp
inventory:giveplayerlistfalsetrue
inventory:droppropsfalsetrue
inventory:randompricesfalsetrue

So on a recipe-built Qbox server, TAB opens the inventory, not F2.

On an existing Qbox server, follow the steps above and add the framework line before your resources start. The ox_inventory Qbox page has two instructions: add setr inventory:framework "qbx" “before starting your resources”, and “Start ox_inventory immediately after qbx_core.”

setr inventory:framework "qbx"

The Qbox bridge refuses to load without qbx_core 1.18.1 or newer and qbx_vehicles 1.2.0 or newer. At the time of writing, qbx_core is at v1.24.1, released October 30, 2026.

Coming from QBCore, your players’ old qb-inventory data is in another format. Qbox’s resource table says to “Convert player, stash, trunk and glovebox data with convertqbinventory”; the full procedure, with a dry run, is in migrating QBCore to Qbox.

Install ox_inventory on ESX Legacy

ox_inventory needs “a compatible version of ESX Legacy (1.6.0 or higher)”; ESX Legacy 1.16.4, released October 18, 2026, is the current version at the time of writing. The official ESX recipe installs oxmysql, esx_lib and ox_lib, but not ox_inventory, so on ESX you always add it yourself.

  1. Place the resource and start it right after es_extended. The ESX page asks you to start ox_inventory “immediately after es_extended”, with ox_lib before the framework. The recipe’s server.cfg runs ensure oxmysql, ensure esx_lib, ensure es_extended, then ensure [core], ensure [standalone] and ensure [esx_addons], and it unzips ox_lib into resources/[standalone], so neither would start in that order on its own. Put ox_inventory and ox_lib in a folder that no ensure [...] line covers, for example resources/[ox], then add ensure ox_lib above ensure es_extended and ensure ox_inventory directly below it.

  2. Leave es_extended’s config alone. In ESX 1.16.4, Config.CustomInventory switches itself to "ox" as soon as a resource named ox_inventory exists; the config comment reads “For ox inventory, this will automatically be adjusted, do not change!”. es_extended then also sets inventory:framework to esx for you.

  3. Take esx_inventory out of [core]. ESX Legacy 1.16.4 ships its own inventory resource, esx_inventory, in the [core] folder that the recipe installs. Its README requires “es_extended with EnableDefaultInventory and without a custom inventory”, and es_extended turns that option off once ox_inventory is present. Left in place, it throws an error on every client (see Troubleshooting).

  4. Restart twice on the first start. At every start on ESX, ox_inventory reads the items table. Items it does not know yet are written into data/items.lua, and the console says they “have been copied from the database” and that you “should restart the resource to load the new items”. The ESX page puts it as “Always restart the resource when items are migrated!”

  5. Convert existing player inventories. Type convertinventory esx in the server console, not in game: the command refuses to run from a player with “This command can only be executed with the server console.” It reads the inventory, loadout and accounts columns of the users table and writes the converted result back to inventory. convertinventory esxproperty is optional and converts old property storage. Restart the server once conversion is complete.

Two ESX details catch people out:

  • Carry weight comes from ESX. es_extended replaces inventory:weight with Config.MaxWeight multiplied by 1000. ESX’s default Config.MaxWeight is 24, so players carry 24000 grams. Change Config.MaxWeight in es_extended’s config rather than the convar.
  • Some ESX resources stop working. The ESX page calls ox_inventory “inherently incompatible with ESX and any resources that rely on default behaviour”. It names standard shops and stashes (esx_shops, esx_weaponshop, esx_policejob) and inventory interfaces (esx_trunkinventory, esx_inventoryhud). “Loadouts do not exist and weapons are treated as items”, so registering custom guns follows the addon weapons guide.

The docs disagree on one point. The ESX page’s start-order example still starts qtarget, while the main docs call qtarget deprecated, and the v2.48.1 code says “No we’re not going to support qtarget any longer.” Use ox_target.

Can you install ox_inventory on QBCore? ox_inventory vs qb-inventory

Not with official support. ox_inventory has no QBCore bridge, Overextended’s own answer for QBCore servers is Qbox, and nothing in the ox_inventory docs or code covers a QBCore setup.

ox_inventoryqb-inventory
Works withox_core, ESX, Qbox, ND Coreqb-core (listed as its dependency)
Database setupCreates its ox_inventory table and columns on first startImport qb-inventory.sql; data in an inventories table
WeaponsOverrides the default weapon system with weapons as itemsHandled by the separate qb-weapons resource
Maintained byOverextended, v2.48.1 on October 24, 2026QBCore, which “has withdrawn from other platforms”

A QBCore server has two paths. It can keep qb-inventory, or it can move to Qbox, whose recipe enables a “qb-core bridge” (setr qbx:enableBridge "true"). Qbox says a QBCore resource with no Qbox replacement “can usually keep running”, and it lists ox_inventory as the replacement for qb-inventory, qb-weapons, qb-shops and qb-crafting. Scripts with an inventory option should then be switched to ox_inventory, as the script installation guide explains.

Does ox_inventory work on FiveM for GTAV Enhanced?

ox_inventory’s README and docs do not mention Enhanced as of December 2, 2026. What the sources do say:

  • Recipes. The Enhanced recipe list, indexv5.json, includes ESX Legacy and Qbox, and the Qbox recipe installs ox_inventory.
  • OneSync. On Enhanced, “OneSync big mode is now the only mode”, so the /onesync requirement is always met.
  • ox_lib. ox_lib v3.42.0, released November 1, 2026, updated cfxlua-require “to resolve a bug that affected FiveM Enhanced” and made its v1.0.2 the minimum. Run ox_lib 3.42.0 or newer on an Enhanced server.

Because the docs are silent, test the inventory on an Enhanced test server before you open it to players.

ox_inventory convars reference

These are the settings most servers change. The defaults are the values in ox_inventory’s init.lua.

ConvarCommandWhat it doesDefault
inventory:frameworksetrBridge to load: ox, esx, qbx or ndesx
inventory:slotssetrSlots in a player inventory50
inventory:weightsetrCarry capacity in grams; “frameworks may override this”30000
inventory:targetsetrStashes and shops through ox_targetfalse
inventory:keyssetrKeys for primary inventory, secondary inventory and hotbarF2, K, TAB
inventory:policesetrJobs with access to the police armoury and evidence lockerspolice, sheriff
inventory:imagepathsetrWhere item images load fromnui://ox_inventory/web/images
inventory:clearstashessetWipe stashes unchanged for this long6 MONTH

The sample config on the docs page is not a list of defaults. It shows inventory:dropprops true and inventory:randomprices true, while the code defaults for both are false. Set any value you rely on yourself.

FiveCrate’s inventory scripts category lists inventory resources for FiveM servers.

Troubleshooting: ox inventory not working

“UI has not been built, refer to the documentation or download a release build.”

The web/build/index.html file is missing. The Common Issues page gives the reason: only ox_inventory.zip contains the bundled screen, and the other downloads are raw source code. Delete the folder, download ox_inventory.zip from the latest release, extract it again and restart.

“ox_inventory requires the ox_lib resource, refer to the documentation.”

ox_lib is missing or failed to load. Check that the ox_lib folder exists, that it starts above ox_inventory, and that the console shows no error from ox_lib itself. A version message instead means oxmysql is older than 2.7.3 or ox_lib older than 3.36.4.

“qbx_core v1.18.1 or higher is required” or ox_inventory looks for es_extended

The first message, and its twin for qbx_vehicles v1.2.0, means a Qbox resource is too old: update it. If a Qbox server instead shows errors about es_extended, the inventory:framework line is missing or comes after the resources start, so ox_inventory loaded its default ESX bridge. Add setr inventory:framework "qbx" near the top of server.cfg or keep the recipe’s exec ox.cfg above the ensure lines.

“es_extended has not been configured to enable support for ox_inventory!”

ox_inventory found an es_extended whose Config.CustomInventory is set to something other than "ox". In es_extended 1.16.4, a block at the end of shared/config/main.lua sets it to "ox" whenever a resource named ox_inventory exists, so this error points to an es_extended without that block or a config where it was edited. Restore the block, and check that the resource folder is named exactly ox_inventory.

“ESX Default Inventory is disabled in config, please enable it to use this resource.”

This error comes from esx_inventory, ESX’s own inventory, which only runs when no custom inventory is installed. Move the esx_inventory folder out of resources/[core] and restart.

“ox_target is not loaded - it should start before ox_inventory”

inventory:target is on but ox_target was not running when ox_inventory started. ox_inventory turns target support off for that session. Start ox_target above ox_inventory, or set inventory:target to false.

“No such export … in resource ox_inventory”

The Common Issues page lists three causes: ox_inventory or one of its dependencies failed to start, the script calling the export starts before ox_inventory, or the export does not exist. Fix the first red error in the console, then move the script below ox_inventory. The No such export guide covers the general case.

“Inventory for player … contains invalid data”

The player’s saved inventory is in an old format. The ESX bridge converts such inventories as they load; the Qbox bridge has no converter and stops with this error instead. On a Qbox server that came from QBCore, run the qb-inventory conversion from the migration guide before players join.

The inventory does not open

Try every default key: F2, K and TAB, or TAB, K and F1 on a Qbox recipe server, since inventory:keys may have been changed. If no key works, look for an earlier ox_inventory error in the server console: while a start-up check fails, the inventory is not running.

Stashes or trunks lost after a restart

The Common Issues page explains that “Inventories are saved at a 5 minute interval”, that “txAdmin scheduled restarts and shutdowns will trigger a save”, that “All inventories are saved when the number of online players hits 0”, and that the saveinv command saves on demand. The same page warns that “Stopping a server or “restarting” it does not trigger any events or allow for saving”.

The v2.48.1 code goes slightly further than that page: it also saves when the ox_inventory resource itself is stopped (an onResourceStop handler), for example with stop ox_inventory. Because the docs say a server stop allows no save, run saveinv in the server console before you stop the server by hand, or use a txAdmin scheduled restart. Separately, inventory:clearstashes deletes stashes left unchanged for 6 months by default, at each start; set it to an empty string to keep them.

Next Steps

Official documentation and repository references