ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
items.lua

Duplicate Item Finder & Remover

Duplicate item names in your ox_inventory items.lua cause errors and unpredictable behavior. Paste your file to find every duplicate β€” and download a clean version with the extras removed. Runs entirely in your browser.

Paste your items.lua

Why duplicate items break ox_inventory

In Lua, when a table has the same key twice, the later definition silently overwrites the earlier one. So a duplicate ['water'] means one of your two definitions is being ignored β€” often not the one you expect. This causes items with the wrong label, weight, or behavior, and is a common source of confusing bugs covered in our ox_inventory troubleshooting guide.

How this tool cleans your file

The tool parses each item block, finds names defined more than once, and keeps the first occurrence of each while removing the later duplicates. Everything else in your file β€” comments, formatting, the return wrapper β€” is left untouched. Always keep a backup before replacing your live file, and test on a staging setup first.

Clean, conflict-free scripts

Viper Development builds optimized scripts that integrate cleanly with ox_inventory β€” no messy conflicts, with docs and support.

Browse Scripts β†’