Inventory Item Definitions
Ready-to-paste item definitions for every supported inventory. Open the section for YOUR inventory - you only ever need one of them.
Products (food, crafted tools) are not usable by themselves - the script gives and takes the items, making them eatable/usable is up to your framework.
qb-inventory (QBCore / QBox)
Paste the block below into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Item images go in qb-inventory/html/images.
['wood'] = { name = 'wood', label = 'Wood', weight = 100, type = 'item', image = 'wood.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Building material, tier 1' },
['stone'] = { name = 'stone', label = 'Stone', weight = 100, type = 'item', image = 'stone.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Building material, tier 2' },
['metal'] = { name = 'metal', label = 'Metal', weight = 100, type = 'item', image = 'metal.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Building material for doors and stairs' },
['concrete'] = { name = 'concrete', label = 'Concrete', weight = 100, type = 'item', image = 'concrete.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Building material, tier 3' },
['water_bottle'] = { name = 'water_bottle', label = 'Water Bottle', weight = 100, type = 'item', image = 'water_bottle.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Water for the base and the garden' },
['jerry_can'] = { name = 'jerry_can', label = 'Jerry Can', weight = 100, type = 'item', image = 'jerry_can.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Generator fuel' },
['tomato_seed'] = { name = 'tomato_seed', label = 'Tomato Seed', weight = 100, type = 'item', image = 'tomato_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a tomato plant' },
['strawberry_seed'] = { name = 'strawberry_seed', label = 'Strawberry Seed', weight = 100, type = 'item', image = 'strawberry_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a strawberry plant' },
['cucumber_seed'] = { name = 'cucumber_seed', label = 'Cucumber Seed', weight = 100, type = 'item', image = 'cucumber_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a cucumber plant' },
['chili_seed'] = { name = 'chili_seed', label = 'Chili Seed', weight = 100, type = 'item', image = 'chili_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a chili plant' },
['onion_seed'] = { name = 'onion_seed', label = 'Onion Seed', weight = 100, type = 'item', image = 'onion_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a onion plant' },
['carrot_seed'] = { name = 'carrot_seed', label = 'Carrot Seed', weight = 100, type = 'item', image = 'carrot_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a carrot plant' },
['pepper_seed'] = { name = 'pepper_seed', label = 'Pepper Seed', weight = 100, type = 'item', image = 'pepper_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a pepper plant' },
['potato_seed'] = { name = 'potato_seed', label = 'Potato Seed', weight = 100, type = 'item', image = 'potato_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a potato plant' },
['wheat_seed'] = { name = 'wheat_seed', label = 'Wheat Seed', weight = 100, type = 'item', image = 'wheat_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a wheat plant' },
['corn_seed'] = { name = 'corn_seed', label = 'Corn Seed', weight = 100, type = 'item', image = 'corn_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a corn plant' },
['watermelon_seed'] = { name = 'watermelon_seed', label = 'Watermelon Seed', weight = 100, type = 'item', image = 'watermelon_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a watermelon plant' },
['apple_seed'] = { name = 'apple_seed', label = 'Apple Seed', weight = 100, type = 'item', image = 'apple_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a apple plant' },
['orange_seed'] = { name = 'orange_seed', label = 'Orange Seed', weight = 100, type = 'item', image = 'orange_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a orange plant' },
['lemon_seed'] = { name = 'lemon_seed', label = 'Lemon Seed', weight = 100, type = 'item', image = 'lemon_seed.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Grows a lemon plant' },
['tomato'] = { name = 'tomato', label = 'Tomato', weight = 100, type = 'item', image = 'tomato.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['strawberry'] = { name = 'strawberry', label = 'Strawberry', weight = 100, type = 'item', image = 'strawberry.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['cucumber'] = { name = 'cucumber', label = 'Cucumber', weight = 100, type = 'item', image = 'cucumber.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['chili'] = { name = 'chili', label = 'Chili', weight = 100, type = 'item', image = 'chili.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['onion'] = { name = 'onion', label = 'Onion', weight = 100, type = 'item', image = 'onion.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['carrot'] = { name = 'carrot', label = 'Carrot', weight = 100, type = 'item', image = 'carrot.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['pepper'] = { name = 'pepper', label = 'Pepper', weight = 100, type = 'item', image = 'pepper.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['potato'] = { name = 'potato', label = 'Potato', weight = 100, type = 'item', image = 'potato.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['wheat'] = { name = 'wheat', label = 'Wheat', weight = 100, type = 'item', image = 'wheat.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['corn'] = { name = 'corn', label = 'Corn', weight = 100, type = 'item', image = 'corn.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['watermelon'] = { name = 'watermelon', label = 'Watermelon', weight = 100, type = 'item', image = 'watermelon.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['apple'] = { name = 'apple', label = 'Apple', weight = 100, type = 'item', image = 'apple.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['orange'] = { name = 'orange', label = 'Orange', weight = 100, type = 'item', image = 'orange.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['lemon'] = { name = 'lemon', label = 'Lemon', weight = 100, type = 'item', image = 'lemon.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly harvested' },
['plant_fertilizer'] = { name = 'plant_fertilizer', label = 'Fertilizer', weight = 100, type = 'item', image = 'plant_fertilizer.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Speeds up plant growth' },
['weed_repellent'] = { name = 'weed_repellent', label = 'Weed Repellent', weight = 100, type = 'item', image = 'weed_repellent.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Clears and prevents weeds' },
['baked_potato'] = { name = 'baked_potato', label = 'Baked Potato', weight = 100, type = 'item', image = 'baked_potato.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Fresh from the furnace' },
['grilled_tomato'] = { name = 'grilled_tomato', label = 'Grilled Tomato', weight = 100, type = 'item', image = 'grilled_tomato.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Fresh from the furnace' },
['grilled_corn'] = { name = 'grilled_corn', label = 'Grilled Corn', weight = 100, type = 'item', image = 'grilled_corn.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Fresh from the furnace' },
['bread'] = { name = 'bread', label = 'Bread', weight = 100, type = 'item', image = 'bread.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly baked' },
['vegetable_soup'] = { name = 'vegetable_soup', label = 'Vegetable Soup', weight = 100, type = 'item', image = 'vegetable_soup.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Homemade soup' },
['fruit_salad'] = { name = 'fruit_salad', label = 'Fruit Salad', weight = 100, type = 'item', image = 'fruit_salad.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Fresh fruit mix' },
['apple_juice'] = { name = 'apple_juice', label = 'Apple Juice', weight = 100, type = 'item', image = 'apple_juice.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Freshly squeezed' },
['nails'] = { name = 'nails', label = 'Nails', weight = 100, type = 'item', image = 'nails.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Handy for building' },
['rope'] = { name = 'rope', label = 'Rope', weight = 100, type = 'item', image = 'rope.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Sturdy braided rope' },
['lockpick'] = { name = 'lockpick', label = 'Lockpick', weight = 100, type = 'item', image = 'lockpick.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = 'Handcrafted lockpick' },
ox_inventory
Add the items below to ox_inventory/data/items.lua. Item images go in ox_inventory/web/images.
['wood'] = {
label = 'Wood',
weight = 100,
description = 'Building material, tier 1',
},
['stone'] = {
label = 'Stone',
weight = 100,
description = 'Building material, tier 2',
},
['metal'] = {
label = 'Metal',
weight = 100,
description = 'Building material for doors and stairs',
},
['concrete'] = {
label = 'Concrete',
weight = 100,
description = 'Building material, tier 3',
},
['water_bottle'] = {
label = 'Water Bottle',
weight = 100,
description = 'Water for the base and the garden',
},
['jerry_can'] = {
label = 'Jerry Can',
weight = 100,
description = 'Generator fuel',
},
['tomato_seed'] = {
label = 'Tomato Seed',
weight = 100,
description = 'Grows a tomato plant',
},
['strawberry_seed'] = {
label = 'Strawberry Seed',
weight = 100,
description = 'Grows a strawberry plant',
},
['cucumber_seed'] = {
label = 'Cucumber Seed',
weight = 100,
description = 'Grows a cucumber plant',
},
['chili_seed'] = {
label = 'Chili Seed',
weight = 100,
description = 'Grows a chili plant',
},
['onion_seed'] = {
label = 'Onion Seed',
weight = 100,
description = 'Grows a onion plant',
},
['carrot_seed'] = {
label = 'Carrot Seed',
weight = 100,
description = 'Grows a carrot plant',
},
['pepper_seed'] = {
label = 'Pepper Seed',
weight = 100,
description = 'Grows a pepper plant',
},
['potato_seed'] = {
label = 'Potato Seed',
weight = 100,
description = 'Grows a potato plant',
},
['wheat_seed'] = {
label = 'Wheat Seed',
weight = 100,
description = 'Grows a wheat plant',
},
['corn_seed'] = {
label = 'Corn Seed',
weight = 100,
description = 'Grows a corn plant',
},
['watermelon_seed'] = {
label = 'Watermelon Seed',
weight = 100,
description = 'Grows a watermelon plant',
},
['apple_seed'] = {
label = 'Apple Seed',
weight = 100,
description = 'Grows a apple plant',
},
['orange_seed'] = {
label = 'Orange Seed',
weight = 100,
description = 'Grows a orange plant',
},
['lemon_seed'] = {
label = 'Lemon Seed',
weight = 100,
description = 'Grows a lemon plant',
},
['tomato'] = {
label = 'Tomato',
weight = 100,
description = 'Freshly harvested',
},
['strawberry'] = {
label = 'Strawberry',
weight = 100,
description = 'Freshly harvested',
},
['cucumber'] = {
label = 'Cucumber',
weight = 100,
description = 'Freshly harvested',
},
['chili'] = {
label = 'Chili',
weight = 100,
description = 'Freshly harvested',
},
['onion'] = {
label = 'Onion',
weight = 100,
description = 'Freshly harvested',
},
['carrot'] = {
label = 'Carrot',
weight = 100,
description = 'Freshly harvested',
},
['pepper'] = {
label = 'Pepper',
weight = 100,
description = 'Freshly harvested',
},
['potato'] = {
label = 'Potato',
weight = 100,
description = 'Freshly harvested',
},
['wheat'] = {
label = 'Wheat',
weight = 100,
description = 'Freshly harvested',
},
['corn'] = {
label = 'Corn',
weight = 100,
description = 'Freshly harvested',
},
['watermelon'] = {
label = 'Watermelon',
weight = 100,
description = 'Freshly harvested',
},
['apple'] = {
label = 'Apple',
weight = 100,
description = 'Freshly harvested',
},
['orange'] = {
label = 'Orange',
weight = 100,
description = 'Freshly harvested',
},
['lemon'] = {
label = 'Lemon',
weight = 100,
description = 'Freshly harvested',
},
['plant_fertilizer'] = {
label = 'Fertilizer',
weight = 100,
description = 'Speeds up plant growth',
},
['weed_repellent'] = {
label = 'Weed Repellent',
weight = 100,
description = 'Clears and prevents weeds',
},
['baked_potato'] = {
label = 'Baked Potato',
weight = 100,
description = 'Fresh from the furnace',
},
['grilled_tomato'] = {
label = 'Grilled Tomato',
weight = 100,
description = 'Fresh from the furnace',
},
['grilled_corn'] = {
label = 'Grilled Corn',
weight = 100,
description = 'Fresh from the furnace',
},
['bread'] = {
label = 'Bread',
weight = 100,
description = 'Freshly baked',
},
['vegetable_soup'] = {
label = 'Vegetable Soup',
weight = 100,
description = 'Homemade soup',
},
['fruit_salad'] = {
label = 'Fruit Salad',
weight = 100,
description = 'Fresh fruit mix',
},
['apple_juice'] = {
label = 'Apple Juice',
weight = 100,
description = 'Freshly squeezed',
},
['nails'] = {
label = 'Nails',
weight = 100,
description = 'Handy for building',
},
['rope'] = {
label = 'Rope',
weight = 100,
description = 'Sturdy braided rope',
},
['lockpick'] = {
label = 'Lockpick',
weight = 100,
description = 'Handcrafted lockpick',
},
qs-inventory
This inventory reads items from your framework and uses the QB item format.
Paste the block from the qb-inventory section above into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Running ESX instead? Use the ESX (database SQL) section.
Item images go in: qs-inventory/html/images
origen_inventory
This inventory reads items from your framework and uses the QB item format.
Paste the block from the qb-inventory section above into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Running ESX instead? Use the ESX (database SQL) section.
Item images go in: origen_inventory/html/images
codem-inventory
This inventory reads items from your framework and uses the QB item format.
Paste the block from the qb-inventory section above into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Running ESX instead? Use the ESX (database SQL) section.
Item images go in: codem-inventory/html/itemimages
tgiann-inventory
This inventory reads items from your framework and uses the QB item format.
Paste the block from the qb-inventory section above into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Running ESX instead? Use the ESX (database SQL) section.
Item images go in: inventory_images/images (the separate tgiann images resource)
core_inventory
This inventory reads items from your framework and uses the QB item format.
Paste the block from the qb-inventory section above into qb-core/shared/items.lua (QBox: qbx_core reads the same list). Running ESX instead? Use the ESX (database SQL) section.
Item images go in: core_inventory/html/img
ESX (database SQL)
Plain ESX stores items in the database. Run the SQL below once on your server database. Item images go in your inventory resource's image folder.
INSERT INTO items (name, label, weight) VALUES
('wood', 'Wood', 1),
('stone', 'Stone', 1),
('metal', 'Metal', 1),
('concrete', 'Concrete', 1),
('water_bottle', 'Water Bottle', 1),
('jerry_can', 'Jerry Can', 1),
('tomato_seed', 'Tomato Seed', 1),
('strawberry_seed', 'Strawberry Seed', 1),
('cucumber_seed', 'Cucumber Seed', 1),
('chili_seed', 'Chili Seed', 1),
('onion_seed', 'Onion Seed', 1),
('carrot_seed', 'Carrot Seed', 1),
('pepper_seed', 'Pepper Seed', 1),
('potato_seed', 'Potato Seed', 1),
('wheat_seed', 'Wheat Seed', 1),
('corn_seed', 'Corn Seed', 1),
('watermelon_seed', 'Watermelon Seed', 1),
('apple_seed', 'Apple Seed', 1),
('orange_seed', 'Orange Seed', 1),
('lemon_seed', 'Lemon Seed', 1),
('tomato', 'Tomato', 1),
('strawberry', 'Strawberry', 1),
('cucumber', 'Cucumber', 1),
('chili', 'Chili', 1),
('onion', 'Onion', 1),
('carrot', 'Carrot', 1),
('pepper', 'Pepper', 1),
('potato', 'Potato', 1),
('wheat', 'Wheat', 1),
('corn', 'Corn', 1),
('watermelon', 'Watermelon', 1),
('apple', 'Apple', 1),
('orange', 'Orange', 1),
('lemon', 'Lemon', 1),
('plant_fertilizer', 'Fertilizer', 1),
('weed_repellent', 'Weed Repellent', 1),
('baked_potato', 'Baked Potato', 1),
('grilled_tomato', 'Grilled Tomato', 1),
('grilled_corn', 'Grilled Corn', 1),
('bread', 'Bread', 1),
('vegetable_soup', 'Vegetable Soup', 1),
('fruit_salad', 'Fruit Salad', 1),
('apple_juice', 'Apple Juice', 1),
('nails', 'Nails', 1),
('rope', 'Rope', 1),
('lockpick', 'Lockpick', 1);