OX Inventory Integration

Configure this resource to work with ox_inventory.

Enable ox_inventory integration

Follow these steps to enable the ox_inventory backend for your framework:

  1. Open your framework integration files, usually in frameworks/[framework]/.
  2. In server.lua, locate the inventory line:
    /frameworks/[framework]/server.lua
    -- inventory = useInventory('ox_inventory', { framework = 'your-framework' }),
  3. Uncomment the line (remove the leading --).
  4. Save the file.
  5. In client.lua, locate the inventory line:
    /frameworks/[framework]/client.lua
    -- inventory = useInventory('ox_inventory', { framework = 'your-framework' }),
  6. Uncomment the line (remove the leading --).
  7. Save the file.
  8. Restart the resource to apply the changes.

Tip: If you cannot find the line, make sure you are on the latest version of the resource and you are viewing the correct frameworks/[framework]/ files.

On this page