QB
Starting Order
To avoid issues with your other scripts, make sure to start this script after your framework and before any of your scripts that use the inventory. Otherwise, you may encounter problems with inventory-dependent scripts.
ensure ox_lib
ensure qb-core
ensure tgiann-inventory
ensure ...Deleting Script
If you have qb-weapons and qb-inventory or another inventory script. delete it
Exports
Search for exports['qb-inventory'] and exports["qb-inventory"] in all your scripts, and replace them with exports['tgiann-inventory']
New itemList Event
Add this event to the bottom of qb-core/shared/items.lua to update the QB Shared Items data
This code replaces QBCore's item list with the inventory's item list when the inventory script starts.
It does not make any physical changes to your qb-core/items.lua file — nothing is permanently modified.
What it does is override QBCore's in-memory item data, so when other scripts try to access the item list from qb-core, they will actually receive the item list defined by the inventory.
In short, when the inventory script starts, it overrides QBCore’s item list with its own.
Convert QB Inventory Data to TGIANN Inventory Data
Upload sql_main.sql to your database
Start tgiann-inventory and use convertqb ( server/convert.lua ) on cmd/live console
If you want to automatically transfer your items file, use the convertitems command
OpenInventory Exports
In default QB, the export looks like this:
You need to modify these exports as follows: Add the "stash" value after the player's ID (src, source, etc.). Here's the updated example:
More Examples
More Info
Last updated