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.
- 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
On this page
- Direct Answer
- What ox_inventory needs before you install it
- Which frameworks ox_inventory supports
- How to install ox_inventory step by step
- Install ox_inventory on Qbox
- Install ox_inventory on ESX Legacy
- Can you install ox_inventory on QBCore? ox_inventory vs qb-inventory
- Does ox_inventory work on FiveM for GTAV Enhanced?
- ox_inventory convars reference
- Troubleshooting: ox inventory not working
- Next Steps
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:
| Requirement | Minimum | Notes |
|---|---|---|
oxmysql | 2.7.3 | Latest release v2.14.4, November 26, 2026 |
ox_lib | 3.36.4 | Latest release v3.42.2, November 7, 2026 |
| FXServer | build 6116 | Declared as /server:6116 in fxmanifest.lua |
| OneSync | Enabled | Declared as /onesync, which the Cfx.re docs describe as “state awareness” not being disabled |
| Framework | ox_core, ESX, Qbox or ND Core | The four bridges that ship with ox_inventory |
ox_target | Optional | Needed 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.
| Framework | inventory:framework | Who sets it | Bridge checks for |
|---|---|---|---|
| Qbox | qbx | You, or the Qbox recipe’s ox.cfg | qbx_core 1.18.1+ and qbx_vehicles 1.2.0+ |
| ESX Legacy | esx | es_extended, automatically | es_extended 1.6.0+ |
| ox_core | ox | You | ox_core 0.21.3+ |
| ND Core | nd | You | ND_Core 2.0.0+ |
| QBCore | None | Not supported | Not supported |
| No framework | None | A bridge you write | Not 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.
-
Install the database and the two dependencies.
oxmysqlneeds a workingmysql_connection_stringline; if you have no database yet, follow the MariaDB setup guide. Then addox_lib. Both come as release zips,oxmysql.zipandox_lib.zip, which is also how the Qbox recipe downloads them. Use theox_librelease zip rather than its source: the README listscfxlua-requireas a dependency that is “included in release”. -
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 -
Extract it as
resources/ox_inventory. Keep that exact folder name. es_extended looks for a resource calledox_inventory, and the default image path isnui://ox_inventory/web/images. Grouping it in a bracket folder such asresources/[ox], as the Qbox recipe does, is fine. The folder must containfxmanifest.luaandweb/build/index.html; ox_inventory checks for the second file at every start. -
Add the convars. ox_inventory has no config file: settings are convars in
server.cfg, and the comment at the top of itsinit.luasays not to edit that file. Settings the game client also reads usesetr, which the Cfx.re docs describe as a server replicated convar, “available on the client side to get the value”. Server-only settings useset. Put them above the lines that start resources. The main convars are listed in the reference table below. -
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_inventoryensureworks in place ofstart: it starts a resource, or restarts it if it is already running. ox_inventory’s manifest listsoxmysqlandox_libunderdependencies, which the Cfx.re docs define as resources required “to load before the current resource”.ox_targetis optional, but if you turn oninventory:target, it has to start before ox_inventory. -
Restart the server and read the console. There is no SQL file to import. On its first start, ox_inventory creates an
ox_inventorytable for stashes when none exists, adds aninventorycolumn to your framework’s player table andgloveboxandtrunkcolumns to its vehicle table. When the item list is ready, the console showsInventory has loaded <count> items. -
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 togroup.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.zipfrom the latest release and unzips it intoresources/[ox], next toox_lib,ox_target,oxmysqlandox_doorlock. - Replaces
ox_inventory/data/items.luawith Qbox’s own item list and copies theqbx_invimagespictures intoox_inventory/web/images. - Ships an
ox.cfgwith its inventory settings, loaded fromserver.cfgbyexec ox.cfg. Its first inventory line issetr inventory:framework "qbx". - Starts the resources in this order:
ensure ox_lib,ensure qbx_core,ensure ox_target, thenensure [ox], which includes ox_inventory.
Its ox.cfg changes several defaults:
| Convar | ox_inventory default | Qbox recipe |
|---|---|---|
inventory:weight | 30000 grams | 85000 |
inventory:target | false | true |
inventory:keys | F2, K, TAB | TAB, K, F1 |
inventory:police | police, sheriff | police, bcso, sasp |
inventory:giveplayerlist | false | true |
inventory:dropprops | false | true |
inventory:randomprices | false | true |
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.
-
Place the resource and start it right after
es_extended. The ESX page asks you to start ox_inventory “immediately after es_extended”, withox_libbefore the framework. The recipe’sserver.cfgrunsensure oxmysql,ensure esx_lib,ensure es_extended, thenensure [core],ensure [standalone]andensure [esx_addons], and it unzipsox_libintoresources/[standalone], so neither would start in that order on its own. Putox_inventoryandox_libin a folder that noensure [...]line covers, for exampleresources/[ox], then addensure ox_libaboveensure es_extendedandensure ox_inventorydirectly below it. -
Leave es_extended’s config alone. In ESX 1.16.4,
Config.CustomInventoryswitches itself to"ox"as soon as a resource namedox_inventoryexists; the config comment reads “For ox inventory, this will automatically be adjusted, do not change!”. es_extended then also setsinventory:frameworktoesxfor you. -
Take
esx_inventoryout 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 withEnableDefaultInventoryand 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). -
Restart twice on the first start. At every start on ESX, ox_inventory reads the
itemstable. Items it does not know yet are written intodata/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!” -
Convert existing player inventories. Type
convertinventory esxin 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 theinventory,loadoutandaccountscolumns of theuserstable and writes the converted result back toinventory.convertinventory esxpropertyis 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:weightwithConfig.MaxWeightmultiplied by 1000. ESX’s defaultConfig.MaxWeightis 24, so players carry 24000 grams. ChangeConfig.MaxWeightin 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_inventory | qb-inventory | |
|---|---|---|
| Works with | ox_core, ESX, Qbox, ND Core | qb-core (listed as its dependency) |
| Database setup | Creates its ox_inventory table and columns on first start | Import qb-inventory.sql; data in an inventories table |
| Weapons | Overrides the default weapon system with weapons as items | Handled by the separate qb-weapons resource |
| Maintained by | Overextended, v2.48.1 on October 24, 2026 | QBCore, 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
/onesyncrequirement 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.
| Convar | Command | What it does | Default |
|---|---|---|---|
inventory:framework | setr | Bridge to load: ox, esx, qbx or nd | esx |
inventory:slots | setr | Slots in a player inventory | 50 |
inventory:weight | setr | Carry capacity in grams; “frameworks may override this” | 30000 |
inventory:target | setr | Stashes and shops through ox_target | false |
inventory:keys | setr | Keys for primary inventory, secondary inventory and hotbar | F2, K, TAB |
inventory:police | setr | Jobs with access to the police armoury and evidence lockers | police, sheriff |
inventory:imagepath | setr | Where item images load from | nui://ox_inventory/web/images |
inventory:clearstashes | set | Wipe stashes unchanged for this long | 6 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
- Define your own items, images and usable effects with how to add items to ox_inventory.
- Register addon guns as inventory items with the addon weapons guide.
- Move a QBCore server and its inventories to Qbox with migrating QBCore to Qbox.
- Install the scripts that use your inventory with how to install FiveM scripts, or browse FiveCrate’s scripts category.
FiveM scripts from FiveCrate
Listed in the FiveCrate catalogue now.
Official documentation and repository references
Related guides
How to Add Items to ox_inventory (Qbox, ESX, QBCore)
How to add items to ox_inventory: define them in data/items.lua, add PNG images, make them usable, and what changes on Qbox, ESX and QBCore servers.
How to Add Addon Weapons to FiveM (ox_inventory)
How to add addon weapons to FiveM: stream folder, data_file lines for weapons.meta, ox_inventory weapons.lua, images, attachments, QBCore and ESX steps.
How to Install FiveM Scripts and Resources Safely
How to install FiveM scripts: check the files, put the folder in resources, add its dependencies and SQL, then set the ensure order in server.cfg.
How to Migrate QBCore to Qbox Safely (With a Rollback Plan)
Migrate QBCore to Qbox on a test copy: what carries over, the database and qb-inventory conversion commands, go-live day and a rollback plan from Qbox's docs.
QBCore vs ESX vs Qbox: Which FiveM Framework in 2026?
QBCore vs ESX vs Qbox in 2026, from official sources: what QBCore leaving FiveM means, how Qbox and ESX Legacy differ, and which framework fits your scripts.




