Item Checker (Free)
Check ox_inventory item definitions and images from your FiveM server console with this free, read-only server tool.
Item Checker helps you find missing item images, invalid settings, and item-definition mistakes before they become player reports. It runs on the server and prints a report in the server console. It doesn't change your items or automatically fix anything.
Free to download and use, under the included MIT license.
Get Item Checker on GitHub · FiveM installation · Get help
What you need
- A FiveM server running ox_inventory with its usual item-definition format.
- Access to your server's resource files and console.
It's built for Qbox servers using ox_inventory, but contains no framework-specific code. Other frameworks can use it when their ox_inventory definitions use the same format. Other inventory systems don't have a ready-made adapter included.
The checker itself needs no database, client scripts, or ox_lib. The default configuration is ready to use.
Install Item Checker
- Open the GitHub repository above, download
dist/rw_itemchecker.zip, and extract it. - Copy the included
rw_itemcheckerfolder into your server'sresourcesdirectory. Keep that folder name, withfxmanifest.luadirectly inside it. - Add the resource after ox_inventory in
server.cfg:
ensure ox_inventory
ensure rw_itemchecker- Start the resource. It doesn't scan automatically by default.
- In the server console, run
itemcheckto get your first report.
Run a scan
Use these commands in the server console, without a slash:
| Command | Result |
|---|---|
itemcheck | Prints a summary and up to 100 findings by default. |
itemcheck all | Prints every finding. |
Wait 10 seconds between command scans by default. The console and in-game callers share this cooldown. Reports aren't saved to a file; copy the console output if you want to keep a record.
Allow an administrator to scan in-game
The console can always run the command. For in-game use, grant the command's ACE permission to your administrator group in server.cfg:
add_ace group.admin command.itemcheck allowThe administrator must actually belong to group.admin in your ACE setup. Qbox permissions alone do not grant this command permission.
Authorized players can then use /itemcheck or /itemcheck all. The full report still goes to the server console. If chat is enabled, the player gets a short message telling them where to look.
If you rename the command in config.lua, update the ACE name to match: command.yourcommand.
Read the report
A report starts with a summary, followed by findings that name the item, severity, check code, and explanation. For example:
[ItemChecker] COMPLETE | 241 items | 0 errors | 2 warnings | 0 informational | images: 241 checked, 0 skipped
[ItemChecker] [WARNINGS] custom_burger | missing_image | Missing, empty, or unreadable image: ox_inventory/web/images/custom_burger.png
[ItemChecker] [WARNINGS] repairkit | server.export | Export resource is not started: mechanicThese are example findings, not a required item count for your server.
- COMPLETE: the selected sources were read and no errors were found. Review any warnings too; this isn't a guarantee that every item works in-game.
- INCOMPLETE / ERRORS: a source couldn't be fully checked or an invalid item setting was found. Read the error details first.
- Warnings: review issues such as missing images, overlapping item names, or an export resource that isn't started.
- Informational findings: include remote image URLs that haven't been verified. The checker doesn't fetch them.
What gets checked
- Missing, empty, or unreadable default item PNGs and custom
client.imagefiles. - Image locations set through
inventory:imagepath, local NUI URLs, andhttps://cfx-nui-...resource URLs. - Missing labels, malformed item definitions, and item names that collide when letter case is ignored.
- Invalid weights, consumption values, degradation, durability, boolean settings, and use times.
- Invalid client/server tables or export strings, and referenced export resources that aren't started.
- Weapon ammo references that don't point to a defined item.
Weapons, ammo, components, and tints are included by default. Omitted weight, stack, close, and consume values are allowed because ox_inventory supplies defaults. Fractional consumption below 1 is valid durability consumption.
Configuration
Edit config.lua only if you want to change the defaults, then restart rw_itemchecker.
| Setting | Default | What it controls |
|---|---|---|
Command | 'itemcheck' | Console and in-game command name. |
Adapter | 'ox_inventory' | Which inventory-reading adapter to use. |
InventoryResource | 'ox_inventory' | The running inventory resource to inspect. |
IncludeWeapons | true | Also read weapon, ammo, component, and tint definitions. |
ScanOnStart | false | Print an automatic report when the checker starts. |
MaxFindings | 100 | Maximum findings printed by the normal command; all bypasses this display limit. |
CooldownSeconds | 10 | Shared command cooldown in seconds. |
IgnoreItems | {} | Item names to exclude from the scan. |
ImagePath | nil | Optional image-directory override. Otherwise, use inventory:imagepath. |
To skip an intentional placeholder, edit the existing IgnoreItems entry:
IgnoreItems = {
['placeholder'] = true,
},If you've renamed ox_inventory, update InventoryResource and check its real image location. The normal image base is nui://ox_inventory/web/images; set ImagePath or the inventory:imagepath convar if yours is different.
Troubleshooting
| Problem | What to check |
|---|---|
| Inventory resource isn't started | Ensure ox_inventory starts before the checker. Check InventoryResource if you renamed it. |
| Missing-image warning | Check the exact filename, path, and whether the file is readable and nonempty. A script may intentionally provide a metadata image instead. |
| Source compilation or evaluation error | Check the reported Lua file. Custom top-level globals or helpers aren't available in the checker's restricted evaluation environment. |
| In-game command denied | Grant command.itemcheck to the correct ACE group and confirm your administrator belongs to it. Use the server console to test independently. |
| Export resource isn't started | Start the resource named in that finding, or fix an incorrect export reference. |
| Please wait before running another scan | Wait for the command cooldown, then try again. |
What the checker can't confirm
It reads definitions on disk from data/items.lua and, when enabled, data/weapons.lua. Files edited since the inventory's last restart may differ from the items currently loaded in-game.
It doesn't inspect live player slots, metadata image overrides, database items, shops, crafting recipes, or items injected at runtime. Duplicate keys in the same Lua table are already overwritten during evaluation, so they can't be recovered or reported.
Local image checks confirm readability and nonempty files. They don't decode images, verify browser support or NUI manifest delivery, or prove that filename case will work on Linux after testing on Windows. Remote URLs, encoded paths, query-string paths, and traversal paths are reported as unverified.
Export checks confirm that the referenced resource is started, not that a particular export exists or behaves correctly.
Only scan trusted server definitions. The adapter evaluates their Lua tables in a restricted environment without calling item-use callbacks. An instruction limit is applied where FiveM exposes debug.sethook; runtimes without it don't have that execution budget, so a loop in a definition can stall a scan.
Use the server export
Another server resource can request a fresh structured report without printing it:
local report = exports.rw_itemchecker:Scan()
-- report.items, errors, warnings, info, imagesChecked, imagesSkipped
-- report.findings = { { severity, item, code, message }, ... }This export is server-only and doesn't use the command cooldown. Cache the result if another resource needs it repeatedly. Source-reading failures appear as errors in the report.
Need help with a finding? Include the relevant console output and explain any custom inventory or image-path changes.
