NEXO DOCSv1 · ENES
docs / scripts / inventory-clean

Inventory Clean

An ox_inventory redesign with colour-coded rarities, a right-click menu, give to nearby players, item history and a full admin panel.

v1.3QBoxESXox_coreND_Core

What's included

Inventory Clean is a full redesign of ox_inventory 2.45: a new interface, an in-game admin panel and roleplay tools, all set up from one config file (nexo_config.lua). Works with QBox, ESX, ox_core and ND_Core, in 6 languages.

FeatureWhat it doesSince
Rarity coloursCommon, uncommon, rare, epic and legendary, at a glance1.0
Per-player themeColour, blur, slot size, sounds and language. Job colour by default1.0
Shops and craftingShops with a cart; recipes showing ingredients you have and miss1.1
Right-click menuUse, give, split, inspect, drop, ammo, serial and attachments1.2
Give to nearby playersPick from a list or drag the item onto their character1.2
SortBy type, rarity or weight. Merges stacks and keeps the hotbar1.3
ExpiryFood and medicine show the time left1.3
Search progress barSearching a player takes a few seconds and notifies them1.3
History and economyPer-player history with returns and an economy tab1.3

Requirements

ResourceRequired?What for
oxmysqlYesData, history and economy
ox_libYesox_inventory dependency
OneSyncYesRequired by ox_inventory
FrameworkYesQBox, ESX, ox_core, ND_Core
ox_targetOptionalZones for shops, stashes and benches. Without it, press E
Classic QBCoreCurrent ox_inventory doesn't support classic QBCore. Use QBox, ESX, ox_core or ND_Core.

Installation

  1. Back up Your current ox_inventory, data/items.lua, any data files you changed (weapons.lua, shops.lua, stashes.lua…) and web/images.
  2. Download the resource From keymaster.fivem.net → Granted Assets.
  3. Replace the folder Put the new ox_inventory folder in resources and copy your files from step 1 back in.
  4. Check your server.cfg Set your framework and the start order.
    ensure oxmysql
    ensure ox_lib
    ensure qbx_core        # or es_extended / ox_core / ND_Core
    ensure ox_target       # optional
    ensure ox_inventory
    setr inventory:framework "qbx"   # qbx | esx | ox | nd
  5. Restart the server The interface comes prebuilt: no Node or pnpm needed.

Configuration

Every Inventory Clean setting lives in `nexo_config.lua`, at the root of the resource.

KeyWhat it does
defaultThemeStarting look for players: accent, blur, slot size, sounds and language
jobColorsAccent colour per job, until the player picks their own
featuresTurn off the player card, clothing, shop UI, crafting UI or hotbar
adminPanel command and the ACE group allowed to open it
giveGive distance, character names or just IDs, and marker colour
sortkeepHotbar: don't move slots 1–5 when sorting
searchEnable the search progress bar and its duration in ms
historyEnable item history and the days kept
discordWebhook URL per log type and an optional item filter
pointsShops, stashes and benches from the panel: ox_target or E key, distance and blip
updateCheckVersion notice on server start

Admin panel

Open it with `/inventory:admin`. By default group.admin can use it. To allow another group:

add_ace group.mod command.inventory:admin allow
  • Items and consumables: create and edit items live; hunger, thirst, stress, animation and hand prop. "Test on my character" without using anything.
  • Shops, stashes and crafting benches: built in game with "Use my position". Saved to data/nexo_points.json and appear without a restart.
  • Who has it?: find which online players carry an item and how many.
  • Players: view, open, give, confiscate, return or clear inventories, and open each player's history.
  • Economy: money in circulation, shop spending per day, best sellers, most crafted, most owned items and richest players.
  • Log: who did what and when (also in the server console).
RecipesIn ingredients, an amount below 1 uses durability (0.1 = 10%). An amount of 0 makes it a tool that isn't consumed.

Rarities and images

Add rarity to any item in data/items.lua. Values: common, uncommon, rare, epic and legendary. Without rarity, it shows as common.

['goldbar'] = {
    label = 'Gold bar',
    weight = 1000,
    rarity = 'legendary',
},

Images are read from web/images/ by item name (water.png, WEAPON_PISTOL.png…). Use transparent PNGs around 128×128 px so the rarity colour shows behind them.

Expiring items

Expiry uses ox_inventory's degrade field, in minutes. The time left shows on the slot (green, yellow and red), in the tooltip and in Inspect.

['burger'] = {
    label = 'Burger',
    weight = 220,
    degrade = 2880,   -- 2 days
},

Item history

The nexo_item_history table is created automatically on start. It records gives, receives, drops, pickups, stash moves, purchases, crafting, used items and searches. Rows older than history.days are deleted on start.

In Players → clock icon, "Return" gives the item back with its original data (serial, durability). The player must be online.

Discord logs

Paste a webhook URL for each log you want. Empty means off. onlyItems limits logs to the listed items.

discord = {
    webhooks = {
        admin = 'https://discord.com/api/webhooks/...',
        give  = '',
        drop  = '',
        shop  = '',
        craft = '',
    },
    onlyItems = {},   -- e.g. { 'WEAPON_PISTOL', 'money' }
},

Notices and languages

A card with the item image appears on the right when using, equipping, holstering, dropping, giving, receiving or losing an item. To turn them off:

setr inventory:itemnotify false
setr inventory:weaponnotify false

The interface is in English, Spanish, French, German, Italian and Portuguese. The default is the server language (setr ox:locale en) and each player can change it in Customize → Language.

Update check

Set updateCheck.url to a JSON file you host. The console shows a notice when its version is newer than the installed one.

{ "version": "1.3.0", "changelog": "Sort button, expiring items, history, economy" }

FAQ

Does it replace my ox_inventory?

Yes. It's a redesign of ox_inventory and installs in its place, with the same resource name (ox_inventory).

Does it work with QBCore or ESX?

It works with QBox, ESX, ox_core and ND_Core. Classic QBCore isn't supported by current ox_inventory.

The panel says I don't have permission

Your group needs the ACE `command.inventory:admin`. Check it with `test_ace` in the server console.

Shops or benches from the panel don't open

With ox_target started they use target zones; without it, walk up and press E. Check `points.distance`.

History or economy is empty

Make sure `history.enabled = true` and oxmysql connects. Purchases and crafting only appear after they happen.

New texts appear in English

Choose the language in Customize (gear icon) or set `defaultTheme.lang`.

Do I get updates?

Yes, for free. New versions appear in your Keymaster and we announce them on Discord.

What if something doesn't work?

Open a ticket on our Discord with the console error and we'll help you.

Changelog

v1.325/11/2026
  • Sort button (type, rarity, weight) with stack merging
  • Expiry time on slots, tooltips and the inspect window
  • Search progress bar and a notice for the searched player
  • Crafting benches from the admin panel
  • Per-player item history with one-click returns
  • Economy tab
  • Documentation in English and Spanish
v1.2
  • New right-click menu with icons
  • Split and inspect windows
  • Give to nearby players and drag onto a player
  • Fix: Drop now always goes to the ground
v1.1
  • ESX, ox_core and ND_Core support
  • Shops with a cart and new crafting UI
  • Shops and stashes from the panel, "Who has it?"
  • Discord logs, update check and a single config file
v1.0
  • First release