[SNIPPET] Transfering OX-Inventory to QS-Inventory

Hey, it’s long and complicated to transfer ox-inventory to QS-Inventory, it’s very boring to do by hand so I made a little script that I share with you, if you also want to make this change.

What the script do :

  • Convert and merge all of your ox-items into the qs-inventory format, with intelligent behavior
  • Automatically sort all of your items by category

STEPS :

  • Create a folder of the name of your choice
  • Paste your “ox_items.lua” into the folder
  • Paste the basic “qs-item.lua” into the folder and rename it “qs-item-base.lua”
  • Paste the “migration.lua” into the folder
  • Open “migration.lua” and change the line 24 to 718 with your own language (ask Chat GPT or else to do the work for you)
  • Go into your folder, right click, open powershell (terminal)
  • Paste this and start : .\lua54.exe migration.lua
  • If you have followed the steps correctly, you have your new file called “items.lua”

migration_french.lua (60.2 KB)

PS : If you can’t run the line " .\lua54.exe migration.lua" it’s because you didn’t install LUA on your pc : Lua: download

Enjoy,
Syranos.