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.

  1. Paste the contents of your items.lua file.
  2. Select Find duplicates to see repeated keys and line numbers.
  3. Review the conflicts so you know which later definitions will be removed.
  4. Download the clean file, back up the original, and test on staging.

Duplicate item questions

Why are duplicate ox_inventory items a problem?

Lua table keys must be unique. When the same item key appears twice, the later definition overwrites the earlier one and can produce unexpected labels, weights or behavior.

Does the duplicate item finder upload my items.lua file?

No. The file is parsed inside your browser and is not sent to Viper Development.

Which duplicate definition does the cleaner keep?

The cleaner keeps the first occurrence of each item key and removes later repeats. Review the result and test it on a staging server before replacing your live file.

Clean, conflict-free scripts

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

Browse Scripts β†’