Guide

Couldn't Load Resource ox_inventory: Startup Order and Fix

'Couldn't load resource ox_inventory' usually means a dependency starts too late. Check the ensure order in server.cfg, then read the console line.

When a server prints Couldn't load resource ox_inventory, the inventory did not start. In most cases the cause is the order of ensure lines in server.cfg, or a dependency that did not start. The fix is usually a change to the order, not a reinstall.

Why the order matters

ox_inventory uses other resources while it starts. The most common ones are ox_lib, which provides its shared code, and oxmysql, which stores items and stashes. If ox_inventory starts before them, its start fails and the server shows the error. Your framework, such as ESX or QBCore, may also need to start before ox_inventory.

Fix the startup order

  1. Open server.cfg and find every ensure line that starts with ox_lib, oxmysql, your framework, ox_target and ox_inventory.
  2. Put them in this order, with the other resources after them: - ensure oxmysql - ensure ox_lib - your framework (for example ensure es_extended or ensure qb-core or ensure qbx_core) - ensure ox_target if you use it - ensure ox_inventory
  3. Save the file and restart the server.

A cfx.re forum reply suggests the same general order: oxmysql, then ox_lib, then the framework, then ox_target, then ox_inventory. Use the order your framework's documentation gives if it differs.

Read the line after the error

The error line is often followed by the real reason. Look at the console line directly after Couldn't load resource ox_inventory. It can name:

  • a missing dependency, such as ox_lib not running,
  • a manifest error in fxmanifest.lua,
  • a syntax error in a config or item file.

Fix the line it names, then restart.

Check the basics

  • oxmysql connects. If the database connection fails, items and stashes will not save. Confirm there are no database errors in the console before ox_inventory starts.
  • The folder is complete. Compare the ox_inventory folder with a fresh download. Missing or partly copied files can cause a load failure.
  • Disk space. A full disk can stop files from being read correctly. Check free space on the server.
  • Matching versions. Update oxmysql, ox_lib and ox_inventory together. Some owners reported that updating all three fixed item problems on ESX servers.

What did not work for others

Some guides suggest running FiveM as administrator. This is a general tip, not a fix for a server-side error, so use it only if the console points to a client problem.

Frequently asked questions

Do I need ox_lib for ox_inventory?

Yes. ox_inventory depends on ox_lib. If it is missing, the inventory will not start.

Does ox_inventory come with SQL files?

No. The SQL files come from your framework, not from ox_inventory. Import the framework's SQL before you start the resources.

The error appears only after a restart. Why?

Startup order can work on a clean boot and still fail when a resource loads a moment earlier. Check the order, then the console line that follows the error.

Sources

Last checked: 29 November 2026. The order above comes from community guides and forum replies. Check the documentation of your framework if it asks for a different order.

FiveM.tools was founded with sponsorship from Nyru.