QBOX
Ready Edited Files
It is a ready edited file for qbx. if you use this file you don't need to make any changes
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 qbx_core
ensure es_extented
ensure tgiann-inventory
ensure ...
Deleting Script
If you have ox_inventory script delete it
Note: Some of your scripts may not work without ox_inventory
. Therefore, check the errors in your console and adjust the fxmanifest
files of the scripts that require ox_inventory
. When you make these adjustments, you might encounter export errors. Replace the old exports with the exports from tgiann-inventory
to fix these issues.
Removing the Ox Inventory requirement
Open "qbx_core\server\main.lua" file
Find and delete the 4 lines in the screenshot

Open "qbx_core\bridge\qb\server\main.lua" file
Find and delete the 2 lines in the screenshot

Open "qbx_core\bridge\qb\shared\main.lua" file
Find and delete all codes in the screenshot

Open "qbx_core\shared\main.lua" file
and add the following code on line 2
TriggerEvent("__cfx_export_tgiann-inventory_Items", function(ref)
if not ref then return end
qbShared.Items = ref()
end)
AddEventHandler("tgiann-inventory:itemList", function(items)
qbShared.Items = items
end)
Edit HasItem Functions
Open "qbx_core\bridge\qb\client\functions.lua" file
Find the "functions.HasItem = function(items, amount)" and replace it with the following code
functions.HasItem = function(items, amount)
return exports['tgiann-inventory']:HasItem(items, amount)
end
Open "qbx_core\bridge\qb\server\functions.lua" file
Find the "functions.HasItem = function(source, items, amount) -- luacheck: ignore" and replace it with the following code
functions.HasItem = function(source, items, amount) -- luacheck: ignore
return exports['tgiann-inventory']:HasItem(source, items, amount)
end
Open "qbx_core\modules\utlis.lua" file
Find the "functions.HasItem = function(source, items, amount) -- luacheck: ignore" and replace it with the following code
function HasItem(source, items, amount) -- luacheck: ignore
return exports['tgiann-inventory']:HasItem(source, items, amount)
end
Find the "functions.HasItem = function(items, amount) -- luacheck: ignore" and replace it with the following code
function HasItem(items, amount) -- luacheck: ignore
return exports['tgiann-inventory']:HasItem(items, amount)
end
Convert Ox Inventory Data to TGIANN Inventory Data
Upload sql_main.sql to your database
Start tgiann-inventory and use convertox ( server/convert.lua ) on cmd/live console
Last updated