How to add items to ox_inventory in FiveM
To add the items of one of our scripts to ox_inventory on ESX or Qbox, paste the item list from its README into ox_inventory/ and copy its PNG images into ox_inventory/. On QBCore with qb-inventory, the list and the images go into qb-core/ and qb-inventory/. Our All-in-One Drug System V2 and Advanced Ambulance Job come with both lists. Our Crafting comes with none, so you add the items its recipes use.
Restart the server after every change, because items load when it starts.
Before you start
First, check which inventory your server runs. ox_inventory 2.48.0 (checked 19 October 2026) has framework bridges for ESX, Qbox, ox_core and ND, but not QBCore. That’s why this guide pairs ox_inventory with ESX and Qbox, and qb-inventory with QBCore.
Then check what the script comes with:
| Script | Item list | Images | Config values |
Config form |
|---|---|---|---|---|
All-in-One Drug System V2 (tk_drugs) |
133 items in README, ox_inventory and qb-inventory format |
images/ |
'default', 'ox', 'qs' |
Full file pattern ending in /%s |
Advanced Ambulance Job (tk_ambulancejob) |
20 items in README, both formats |
images/ |
'default', 'ox', 'qs', 'qb_old', 'qb_new' |
Folder only |
Crafting (tk_crafting) |
None | web/ |
No setting, it uses the framework’s item functions | Folder only |
Make a copy of your item file before you edit it. If the server won’t start after a paste, put the copy back.
Add items to ox_inventory (ESX and Qbox)
-
Open
ox_inventory/. It is one table,data/ items.lua return { ., with one entry per item name... } -
Paste the script’s
ox_inventoryblock from its README before the closing}. Each entry has this shape:['og_kush_seed'] = { label = 'OG Kush Seed', weight = 1, stack = true, }, -
Search the file for every name you paste. ox_inventory already has a
bandage, and Advanced Ambulance Job defines one too, so keep only one['bandage']entry. -
Copy the PNGs from the script’s
imagesfolder intoox_inventory/. Each file is named after its item, such asweb/ images og_kush_seed..png -
In the script’s
config, set.lua Config. The shipped.Inventory = 'ox' Configalready points at.ImagePath nui:/./ ox_inventory/ web/ images -
Restart the server. The console shows no
ox_inventoryerrors.
On Qbox, server needs setr inventory:framework "qbx", and ox_inventory has to start right after qbx_core (ox docs). Qbox’s FAQ says anything you add to qbx_core/ is added to ox_inventory automatically. You only need that file for scripts that read items through Qbox’s QBCore bridge. In the script’s config, set Config and Config.
On ESX, ox_inventory moves every item from the ESX items table into its own item data (ox docs). Restart once more after that migration.
Add items to qb-inventory (QBCore)
-
Open
qb-core/. Items sit insideshared/ items.lua QBCore..Shared .Items = { . .. } -
Paste the script’s
qb-inventoryblock from its README inside that table. Each line has this shape:og_kush_seed = {name = 'og_kush_seed', label = 'OG Kush Seed', weight = 1, type = 'item', image = 'og_kush_seed.png', unique = false, useable = true}, -
Search the file for every name. QBCore already has
bandage,water_bottleandmeth. The drug script defineswater_bottleandmethtoo, and the ambulance job definesbandage. Keep one entry per name. -
Copy the PNGs into
qb-inventory/. Thehtml/ images imagefield names the file (QBCore docs). -
In All-in-One Drug System V2’s
config, set.lua Configand.Inventory = 'default' Config..ImagePath = 'nui:/ / qb-inventory/ html/ images/ %s.png' -
In Advanced Ambulance Job’s
config, set.lua Config. Then set.ImagePath = 'nui:/ / qb-inventory/ html/ images' Configif your qb-inventory has the.Inventory = 'qb_new' CreateShopexport, as version 2.2.3 does (checked 19 October 2026). For an older qb-inventory, use'qb_old'. -
Restart the server.
The useable = true flag doesn’t make an item usable on its own. Our scripts register their own usable items when they start.
Add items on ESX without ox_inventory
ESX reads items from the items database table when it starts. The table has name, label, weight, rare and can_remove, and only name and label have no default. The READMEs don’t include an ESX list, so write one row per item from the ox_inventory list. Use the same form as Ownable Drug Labs’ own SQL file:
INSERT INTO items (name, label, weight) VALUES
('darkweb_tablet', 'Dark Web Tablet', 1),
('bolt_cutters', 'Bolt Cutters', 1)
;
Keep the weights on ESX’s scale. The default carry limit in es_extended is Config, but the ox_inventory weights in the READMEs go up to 2500. Copy those over and the items are too heavy to carry. In the script’s config, leave Config.
Advanced Ambulance Job’s storages don’t open on ESX’s own inventory. They need ox_inventory, qs-inventory or qb-inventory, and without one they print Storage not set correctly in config!. Its hospital shop opens in the script’s own menu instead of an inventory shop.
Add the items Crafting recipes name
Crafting gives and takes items through ESX or QBCore, and it has no item list of its own. Every name in sv_config has to exist in your inventory: crafted items, ingredients and table items.
- In
sv_config, list every.lua nameunderitemsandneededItems, and everyitemundertableItems. The default recipes uselockpick,iron,copper,rubber,screw,lighter,screwdriverset,gold,plastic,leather, three weapons and thedefault_tableitem. - Add any your inventory is missing, or change the recipe to use an item you already have. ox_inventory and QBCore both come with
lockpick. - For a recipe with
needBlueprint = true, add an item namedblueprint_plus the crafted item’s name in lower case:WEAPON_PISTOLneedsblueprint_.weapon_ pistol - Copy
web/into your inventory’s image folder, and setimages/ default_table.png Configto the folder:.ImagePath nui:/or/ ox_inventory/ web/ images nui:/./ qb-inventory/ html/ images - If an ingredient’s picture has a different name, set
imageon that ingredient, like the defaultironline does.
Check it works
As an admin, give yourself an item with the command from whichever resource owns your items:
- ox_inventory:
/giveitem 1 og_kush_seed 1(target, item, count;grouponly)..admin - qb-inventory:
/giveitem 1 og_kush_seed 1(id, item, amount;adminonly). - ESX without ox_inventory:
/giveitem 1 og_kush_seed 1(player id, item, count).
The item lands in your inventory with its label and picture. Then open one of the script’s menus that lists items, such as the drug shop or the Advanced Ambulance Job hospital shop, and check the pictures load there too.
If it still fails
- The server stops with a Lua error in
items: the paste broke the table, often a missing comma or a block pasted after the closing.lua }. Restore your copy and paste again inside the table. /giveitemdoesn’t find the item: the name isn’t in the item file or table, or the server hasn’t restarted since.- The item has no picture in the inventory: the PNG is missing from the image folder, or its file name differs from the item name.
- The item has a picture in the inventory but not in the script’s menus:
Configis wrong. All-in-One Drug System V2 needs the full pattern ending in.ImagePath /%s. Advanced Ambulance Job and Crafting need the folder only..png
To see how the drug items fit into growing, processing and selling, read how to add drugs to your FiveM server.


