QBCore Configuration
Since the split of the QBCore developers there are two branches of QBCore which is being developed by different teams. One of them being the old QBCore which uses its own resources, such as qb-inventory
or qb-target
. The other one is QBox Project and it is being developed by a team of former contributors and developers on QBCore. The team is focused on supporting Overextended's resources, such as ox_inventory
, ox_lib
or ox_target
.
Setting up items and job
You will need to add your items and hogspub
job to your qb-core/shared/items.lua and qb-core/shared/jobs.lua and run the SQL queries SQL Queries
Items
Items are listed for ox_inventory and qb-inventory. Please use corresponding item list for your inventory.
qb-inventory Items
This item list is only an example for you as you can create your own menu for this resource which we will provide a guide on how to do it later in the docs.
Insert the code snippet below to qb-core/shared/items.lua
.
-- Meals
["chipsanddip"] = {["name"] = "tortillachip", ["label"] = "Chips & Dip", ["weight"] = 100, ["type"] = "item", ["image"] = "chipsanddips.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["chickenquesadilla"] = {["name"] = "chickenquesadilla", ["label"] = "Chicken Quesadilla", ["weight"] = 100, ["type"] = "item", ["image"] = "chickenquesadilla.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["loadednachos"] = {["name"] = "loadednachos", ["label"] = "Loaded Nachos", ["weight"] = 100, ["type"] = "item", ["image"] = "loadednachos.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["mushroomswissburger"] = {["name"] = "mushroomswissburger", ["label"] = "Mushroom Swiss Burger", ["weight"] = 100, ["type"] = "item", ["image"] = "burger2.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["chickenclubburger"] = {["name"] = "chickenclubburger", ["label"] = "Chicken Club Burger", ["weight"] = 100, ["type"] = "item", ["image"] = "hamburger.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
-- Ingredients
["tortillachip"] = {["name"] = "tortillachip", ["label"] = "Tortilla Chips", ["weight"] = 100, ["type"] = "item", ["image"] = "tortillachip.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["chickenbreast"] = {["name"] = "chickenbreast", ["label"] = "Chicken Breast", ["weight"] = 100, ["type"] = "item", ["image"] = "chickenbreast.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["sourcream"] = {["name"] = "sourcream", ["label"] = "Sourcream", ["weight"] = 100, ["type"] = "item", ["image"] = "sauce.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["guacamole"] = {["name"] = "guacamole", ["label"] = "Guacamole", ["weight"] = 100, ["type"] = "item", ["image"] = "sauce.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["salsa"] = {["name"] = "salsa", ["label"] = "Salsa", ["weight"] = 100, ["type"] = "item", ["image"] = "sauce.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["blackbeans"] = {["name"] = "blackbeans", ["label"] = "Black Beans", ["weight"] = 100, ["type"] = "item", ["image"] = "blackbeans.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["pepperjackcheese"] = {["name"] = "pepperjackcheese", ["label"] = "Pepperjack Cheese", ["weight"] = 100, ["type"] = "item", ["image"] = "pepperjackcheese.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["lettuce"] = {["name"] = "lettuce", ["label"] = "Lettuce", ["weight"] = 100, ["type"] = "item", ["image"] = "lettuce.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["tomato"] = {["name"] = "tomato", ["label"] = "Tomato", ["weight"] = 100, ["type"] = "item", ["image"] = "tomato.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["sauteedmushroom"] = {["name"] = "sauteedmushroom", ["label"] = "Sauteed Mushroom", ["weight"] = 100, ["type"] = "item", ["image"] = "sauteedmushroom.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["swisscheese"] = {["name"] = "swisscheese", ["label"] = "Swiss Cheese", ["weight"] = 100, ["type"] = "item", ["image"] = "swisscheese.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["bacon"] = {["name"] = "bacon", ["label"] = "Bacon", ["weight"] = 100, ["type"] = "item", ["image"] = "bacon.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["redonion"] = {["name"] = "redonion", ["label"] = "Red Onion", ["weight"] = 100, ["type"] = "item", ["image"] = "onion.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["provolonecheese"] = {["name"] = "provolonecheese", ["label"] = "Provolone Cheese", ["weight"] = 100, ["type"] = "item", ["image"] = "provolonecheese.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["milk"] = {["name"] = "milk", ["label"] = "Milk", ["weight"] = 100, ["type"] = "item", ["image"] = "milk.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["water"] = {["name"] = "water", ["label"] = "Water", ["weight"] = 100, ["type"] = "item", ["image"] = "water.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["groundcoffee"] = {["name"] = "groundcoffee", ["label"] = "Ground Coffee", ["weight"] = 100, ["type"] = "item", ["image"] = "groundcoffee.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
-- Alcohols
-- Draft Beers
["budweiser"] = {["name"] = "budweiser", ["label"] = "Budweiser", ["weight"] = 100, ["type"] = "item", ["image"] = "draftbeer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["budlight"] = {["name"] = "budlight", ["label"] = "Bud Light", ["weight"] = 100, ["type"] = "item", ["image"] = "draftbeer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["yuengling"] = {["name"] = "yuengling", ["label"] = "Yuengling", ["weight"] = 100, ["type"] = "item", ["image"] = "draftbeer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
-- Imported Draft Beers
["guinnessstout"] = {["name"] = "guinnessstout", ["label"] = "Guinnessstout", ["weight"] = 100, ["type"] = "item", ["image"] = "beer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["hoegaardenbelgianwhite"] = {["name"] = "hoegaardenbelgianwhite", ["label"] = "Hoegaarden Belgian White", ["weight"] = 100, ["type"] = "item", ["image"] = "beer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["warsteinerpilsner"] = {["name"] = "warsteinerpilsner", ["label"] = "Warsteiner Pilsner", ["weight"] = 100, ["type"] = "item", ["image"] = "beer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["lindemansframboise"] = {["name"] = "lindemansframboise", ["label"] = "Lindemans Framboise", ["weight"] = 100, ["type"] = "item", ["image"] = "beer.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
-- Whiskeys
["jameson"] = {["name"] = "jameson", ["label"] = "Jameson", ["weight"] = 100, ["type"] = "item", ["image"] = "whiskey.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["jackdaniels"] = {["name"] = "jackdaniels", ["label"] = "Jack Daniel’s", ["weight"] = 100, ["type"] = "item", ["image"] = "whiskey.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
ox_inventory Items
Insert the code snippet below to ox_inventory/data/items.lua
.
['sourcream'] = {
label = 'Sourcream',
weight = 100,
stack = true,
close = false,
description = ""
},
['chickenbreast'] = {
label = 'Chicken Breast',
weight = 100,
stack = true,
close = false,
description = ""
},
['tortillachip'] = {
label = 'Tortilla Chips',
weight = 100,
stack = true,
close = false,
description = ""
},
['milk'] = {
label = 'Milk',
weight = 100,
stack = true,
close = false,
description = ""
},
['guacamole'] = {
label = 'Guacamole',
weight = 100,
stack = true,
close = false,
description = ""
},
['budweiser'] = {
label = 'Budweiser',
weight = 100,
stack = true,
close = false,
description = ""
},
['salsa'] = {
label = 'Salsa',
weight = 100,
stack = true,
close = false,
description = ""
},
['bacon'] = {
label = 'Bacon',
weight = 100,
stack = true,
close = false,
description = ""
},
['hoegaardenbelgianwhite'] = {
label = 'Hoegaarden Belgian White',
weight = 100,
stack = true,
close = false,
description = ""
},
['chickenquesadilla'] = {
label = 'Chicken Quesadilla',
weight = 100,
stack = true,
close = false,
description = ""
},
['lettuce'] = {
label = 'Lettuce',
weight = 100,
stack = true,
close = false,
description = ""
},
['tomato'] = {
label = 'Tomato',
weight = 100,
stack = true,
close = false,
description = ""
},
['mushroomswissburger'] = {
label = 'Mushroom Swiss Burger',
weight = 100,
stack = true,
close = false,
description = ""
},
['warsteinerpilsner'] = {
label = 'Warsteiner Pilsner',
weight = 100,
stack = true,
close = false,
description = ""
},
['loadednachos'] = {
label = 'Loaded Nachos',
weight = 100,
stack = true,
close = false,
description = ""
},
['guinnessstout'] = {
label = 'Guinnessstout',
weight = 100,
stack = true,
close = false,
description = ""
},
['pepperjackcheese'] = {
label = 'Pepperjack Cheese',
weight = 100,
stack = true,
close = false,
description = ""
},
['water'] = {
label = 'Water',
weight = 500,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.03, 0.03, 0.02), rot = vec3(0.0, 0.0, -1.5) },
usetime = 2500,
cancel = true,
notification = 'You drank some refreshing water'
}
},
['chickenclubburger'] = {
label = 'Chicken Club Burger',
weight = 100,
stack = true,
close = false,
description = ""
},
['yuengling'] = {
label = 'Yuengling',
weight = 100,
stack = true,
close = false,
description = ""
},
['budlight'] = {
label = 'Bud Light',
weight = 100,
stack = true,
close = false,
description = ""
},
['blackbeans'] = {
label = 'Black Beans',
weight = 100,
stack = true,
close = false,
description = ""
},
['redonion'] = {
label = 'Red Onion',
weight = 100,
stack = true,
close = false,
description = ""
},
['lindemansframboise'] = {
label = 'Lindemans Framboise',
weight = 100,
stack = true,
close = false,
description = ""
},
['provolonecheese'] = {
label = 'Provolone Cheese',
weight = 100,
stack = true,
close = false,
description = ""
},
['swisscheese'] = {
label = 'Swiss Cheese',
weight = 100,
stack = true,
close = false,
description = ""
},
['sauteedmushroom'] = {
label = 'Sauteed Mushroom',
weight = 100,
stack = true,
close = false,
description = ""
},
['jameson'] = {
label = 'Jameson',
weight = 100,
stack = true,
close = false,
description = ""
},
['jackdaniels'] = {
label = 'Jack Daniel’s',
weight = 100,
stack = true,
close = false,
description = ""
},
Job creation
Insert the code snippet below to qb-core/shared/jobs.lua
.
...
},
['hogspub'] = {
label = 'Hogs Pub',
defaultDuty = true,
offDutyPay = false,
grades = {
[0] = {
name = 'Sales',
payment = 50
},
[1] = {
name = 'Boss',
isboss = true,
payment = 50
}
},
},
{
...
SQL Queries
INSERT INTO `management_funds` (`job_name`, `amount`, `type`) VALUES
('hogspub', 0, 'boss');