📃How to Install
This page will give you a brief overlook on how to install this resource
Important things to install! Follow the steps carefully and you shouldn't have a problem.
Make sure to follow all steps, step by step, if you encounter errors please recheck that you've completed step 1-7 correctly.
Step 1
Insert VT-Foodchain into your server
Remember to Ensure VT-Foodchain in your server.cfg
Step 2
Run the resource before all resources in server.cfg
# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
# QBCore & Extra stuff
ensure qb-core
# VT Scripts
ensure vt-foodchain
#Of course if you use the mlo that comes with the resource!
ensure vt-burgershot
Step 3
Add the following to your qb-core/shared/items.lua
Now go to your inventory and paste all the images from the images folder located in the vt-foodchain resource and move them to your qb-inventory/html/images folde
-- Flood Chain
-- Food
["burger-bleeder"] = {
["name"] = "burger-bleeder",
["label"] = "Bleeder",
["weight"] = 250,
["type"] = "item",
["image"] = "bs_the-bleeder.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-moneyshot"] = {
["name"] = "burger-moneyshot",
["label"] = "Moneyshot",
["weight"] = 300,
["type"] = "item",
["image"] = "bs_money-shot.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-torpedo"] = {
["name"] = "burger-torpedo",
["label"] = "Torpedo",
["weight"] = 310,
["type"] = "item",
["image"] = "bs_torpedo.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-heartstopper"] = {
["name"] = "burger-heartstopper",
["label"] = "Heartstopper",
["weight"] = 2500,
["type"] = "item",
["image"] = "bs_the-heart-stopper.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-meatfree"] = {
["name"] = "burger-meatfree",
["label"] = "MeatFree",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_meat-free.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-fries"] = {
["name"] = "burger-fries",
["label"] = "Fries",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_fries.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Sates Hunger."
},
["burger-rimjob"] = {
["name"] = "burger-rimjob",
["label"] = "Donut",
["weight"] = 125,
["type"] = "item",
["image"] = "burger-rimjob.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Burger Shot Donut."
},
["burger-shotrings"] = {
["name"] = "burger-shotrings",
["label"] = "Donuts",
["weight"] = 125,
["type"] = "item",
["image"] = "burger-shotrings.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Burger Shot Donuts."
},
-- Drinks
["burgerempycup"] = {
["name"] = "burgerempycup",
["label"] = "Burger EmptY CuP",
["weight"] = 20,
["type"] = "item",
["image"] = "burgerempycup.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Empty cup BurgerShot"
},
["burger-softdrink"] = {
["name"] = "burger-softdrink",
["label"] = "Soft Drink",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_softdrink.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ice Cold Drink."
},
["burger-mshake"] = {
["name"] = "burger-mshake",
["label"] = "Milkshake",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_milkshake.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Hand-scooped for you!"
},
--Ingredients
["burger-bun"] = {
["name"] = "burger-bun",
["label"] = "Bun",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_bun.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-meat"] = {
["name"] = "burger-meat",
["label"] = "Cooked Patty",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_patty.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-lettuce"] = {
["name"] = "burger-lettuce",
["label"] = "Lettuce",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_lettuce.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-tomato"] = {
["name"] = "burger-tomato",
["label"] = "Tomato",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_tomato.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-raw"] = {
["name"] = "burger-raw",
["label"] = "Raw Patty",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_patty_raw.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-potato"] = {
["name"] = "burger-potato",
["label"] = "Bag of Potatoes",
["weight"] = 1500,
["type"] = "item",
["image"] = "bs_potato.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-mshakeformula"] = {
["name"] = "burger-mshakeformula",
["label"] = "Milkshake Formula",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_ingredients_icecream.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["burger-sodasyrup"] = {
["name"] = "burger-sodasyrup",
["label"] = "Soda Syrup",
["weight"] = 125,
["type"] = "item",
["image"] = "bs_ingredients_hfcs.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["washed-potatoes"] = {
["name"] = "washed-potatoes",
["label"] = "Washed Potatoes",
["weight"] = 125,
["type"] = "item",
["image"] = "washed-potatoes.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["sliced-potatoes"] = {
["name"] = "sliced-potatoes",
["label"] = "sliced Potatoes",
["weight"] = 125,
["type"] = "item",
["image"] = "sliced-potatoes.png",
["unique"] = false,
["useable"] = false,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "An Ingredient"
},
["bmilkcarton"] = {
["name"] = "bmilkcarton",
["label"] = "Milk",
["weight"] = 100,
["type"] = "item",
["image"] = "milkcarton.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Milk"
},
["bflour"] = {
["name"] = "bflour",
["label"] = "Flour",
["weight"] = 200,
["type"] = "item",
["image"] = "flour.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Flour - cooking ingredient"
},
['bwater'] = {
['name'] = 'bwater',
['label'] = 'Water',
['weight'] = 700,
['type'] = 'item',
['image'] = 'np_water.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Water.'
},
--Foodchain BAG
['vtb_bagsmall'] = {
['name'] = 'vtb_bagsmall',
['label'] = 'Small Size Package',
['weight'] = 100,
['type'] = 'item',
['image'] = 'vtb_bagsmall.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "1x Bleeder Burger, 1x Small SoftDrink 1x Small Fries"
},
['vtb_bagbig'] = {
['name'] = 'vtb_bagbig',
['label'] = 'Big Size Package',
['weight'] = 100,
['type'] = 'item',
['image'] = 'vtb_bagbig.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "1x HeartsTopper Burger 1x Big SoftDrink 1x Big Fries"
},
--Foodchain Toy
['bs_toy_barry'] = {
['name'] = 'bs_toy_barry',
['label'] = 'Burger Shot Barry',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_barry.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_betch'] = {
['name'] = 'bs_toy_betch',
['label'] = 'Burger Shot Betch',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_betch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_bradley'] = {
['name'] = 'bs_toy_bradley',
['label'] = 'Burger Shot Bradley',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_bradley.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_cassie'] = {
['name'] = 'bs_toy_cassie',
['label'] = 'Burger Shot Cassie',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_cassie.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_clayvon'] = {
['name'] = 'bs_toy_clayvon',
['label'] = 'Burger Shot Clayvon',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_clayvon.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_dean'] = {
['name'] = 'bs_toy_dean',
['label'] = 'Burger Shot Dean',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_dean.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_eugene'] = {
['name'] = 'bs_toy_eugene',
['label'] = 'Burger Shot Eugene',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_eugene.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_frank'] = {
['name'] = 'bs_toy_frank',
['label'] = 'Burger Shot Frank',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_frank.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_jackie'] = {
['name'] = 'bs_toy_jackie',
['label'] = 'Burger Shot Jackie',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_jackie.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_jordan'] = {
['name'] = 'bs_toy_jordan',
['label'] = 'Burger Shot Jordan',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_jordan.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_kiki'] = {
['name'] = 'bs_toy_kiki',
['label'] = 'Burger Shot Kiki',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_kiki.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_kitty'] = {
['name'] = 'bs_toy_kitty',
['label'] = 'Burger Shot Kitty',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_kitty.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_kyle'] = {
['name'] = 'bs_toy_kyle',
['label'] = 'Burger Shot Kyle',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_kyle.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_lenny'] = {
['name'] = 'bs_toy_lenny',
['label'] = 'Burger Shot Lenny',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_lenny.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_molly'] = {
['name'] = 'bs_toy_molly',
['label'] = 'Burger Shot Molly',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_molly.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_oki'] = {
['name'] = 'bs_toy_oki',
['label'] = 'Burger Shot Oki',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_oki.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_ott'] = {
['name'] = 'bs_toy_ott',
['label'] = 'Burger Shot OTT',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_OTT.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_pilbis'] = {
['name'] = 'bs_toy_pilbis',
['label'] = 'Burger Shot Pilbis',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_pilbis.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_sherry'] = {
['name'] = 'bs_toy_sherry',
['label'] = 'Burger Shot Sherry',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_sherry.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_slim'] = {
['name'] = 'bs_toy_slim',
['label'] = 'Burger Shot Lenny',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_slim.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_steven'] = {
['name'] = 'bs_toy_steven',
['label'] = 'Burger Shot Steven',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_steven.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_tony'] = {
['name'] = 'bs_toy_tony',
['label'] = 'Burger Shot Tony',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_tony.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['bs_toy_x'] = {
['name'] = 'bs_toy_x',
['label'] = 'Burger Shot X',
['weight'] = 100,
['type'] = 'item',
['image'] = 'bs_toy_x.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Burger Shot collectible toy",
},
['np_toy'] = {
['name'] = 'np_toy',
['label'] = 'Burger Shot Toy - Collection 1',
['weight'] = 100,
['type'] = 'item',
['image'] = 'np_toy.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = "Open to see what you got!",
},
--End Food Chain
Step 4
Add items to qb-core/shared/jobs.lua
["burgerjob"] = {
label = "Burgershot",
defaultDuty = true,
grades = {
['0'] = {
name = "Trainee",
payment = 50
},
['1'] = {
name = "Employee",
payment = 75
},
['2'] = {
name = "Flipper",
payment = 100
},
['3'] = {
name = "Manager",
payment = 125
},
['4'] = {
name = "CEO",
isboss = true,
payment = 150
},
},
},
Step 5
Consumables
Follow all steps very carefully on Step 5
ConsumablesEat
Find the file qb-smallresources/config.lua
Find the following!
Config.ConsumablesEat
Paste the following code into it.
The order in which you put it doesn't really matter. It can be after yours which you have already made or after all which are default
--VT Burger Job "Foodchain"
["burger-bleeder"] = math.random(40, 45),
["burger-moneyshot"] = math.random(25, 34),
["burger-torpedo"] = math.random(40, 45),
["burger-heartstopper"] = math.random(60, 85),
["burger-meatfree"] = math.random(40, 45),
["burger-fries"] = math.random(24, 35),
["burger-rimjob"] = math.random(23, 35),
["burger-shotrings"] = math.random(23, 35),
ConsumablesDrink
Find the file qb-smallresources/config.lua
Find the following!
Config.ConsumablesDrink
Paste the following code into it.
The order in which you put it doesn't really matter. It can be after yours which you have already made or after all which are default
--VT Burger Job "Foodchain"
["burger-bleeder"] = math.random(40, 45),
["burger-moneyshot"] = math.random(25, 34),
["burger-torpedo"] = math.random(40, 45),
["burger-heartstopper"] = math.random(60, 85),
["burger-meatfree"] = math.random(40, 45),
["burger-fries"] = math.random(24, 35),
["burger-rimjob"] = math.random(23, 35),
["burger-shotrings"] = math.random(23, 35),
Find the file qb-smallresources/client/consumables.lua
Paste the following code into it.
The order in which you put it doesn't really matter. It can be after yours which you have already made or after all which are default
--Burger Job ConsumablesEat
RegisterNetEvent("consumables:client:bsbleeder", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsmoneyshot", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bstorpedo", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsheartstopper", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsmeatfree", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"eat"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsfries", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"bsfries"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsfries", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"bsfries"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsrimjob", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"bsdonut"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsshotrings", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"bsdonut"})
QBCore.Functions.Progressbar("eat_something", "Have a bite..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addHunger", QBCore.Functions.GetPlayerData().metadata["hunger"] + Config.ConsumablesEat[itemName])
end)
end)
--Burger Job ConsumablesDrink
RegisterNetEvent("consumables:client:bssoftdrink", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"soda"})
QBCore.Functions.Progressbar("drink_something", "Drink..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addThirst", QBCore.Functions.GetPlayerData().metadata["thirst"] + Config.ConsumablesDrink[itemName])
end)
end)
RegisterNetEvent("consumables:client:bsmshake", function(itemName)
TriggerEvent('animations:client:EmoteCommandStart', {"soda"})
QBCore.Functions.Progressbar("drink_something", "Drink..", 10000, false, true, {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
TriggerEvent("inventory:client:ItemBox", QBCore.Shared.Items[itemName], "remove")
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
TriggerServerEvent("consumables:server:addThirst", QBCore.Functions.GetPlayerData().metadata["thirst"] + Config.ConsumablesDrink[itemName])
end)
end)
Find the file qb-smallresources/server/consumables.lua
Paste the following code into it.
The order in which you put it doesn't really matter. It can be after yours which you have already made or after all which are default
--Burger Job ConsumablesEat
QBCore.Functions.CreateUseableItem("burger-bleeder", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsbleeder", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-moneyshot", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsmoneyshot", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-torpedo", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bstorpedo", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-heartstopper", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsheartstopper", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-meatfree", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsmeatfree", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-fries", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsfries", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-rimjob", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsrimjob", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-shotrings", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsshotrings", source, item.name)
end
end)
--Burger Job ConsumablesDrink
QBCore.Functions.CreateUseableItem("burger-softdrink", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bssoftdrink", source, item.name)
end
end)
QBCore.Functions.CreateUseableItem("burger-mshake", function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.Functions.RemoveItem(item.name, 1, item.slot) then
TriggerClientEvent("consumables:client:bsmshake", source, item.name)
end
end)
Step 6
Boss Menu
Follow all the steps of Step 6 very carefully and copy what you think you need for the respective mlo
Find the file qb-management/client/cl_config.lua
Add to cl_config.lua
Config.BossMenus = {
--NoPixel MLo
['burgerjob'] = {
vector3(-1178.24, -896.34, 13.98)
},
--Gabz MLo
--[[
['burgerjob'] = {
vector3(-1198.15, -897.64, 13.8)
},
]]
Config.BossMenuZones = {
--Nopixel MLo
['burgerjob'] = {
{ coords = vector3(-1178.24, -896.34, 13.98), length = 1.15, width = 2.6, heading = 35, minZ = 10.78, maxZ = 14.78 },
},
--Gabz Mlo
--[[
['burgerjob'] = {
{ coords = vector3(-1198.15, -897.64, 13.8), length = 1.15, width = 2.6, heading = 35, minZ = 10.78, maxZ = 14.78 },
},
]]
Find the file qb-management/client/cl_config.lua
Add to cl_config.lua
Config.BossMenus = {
--NoPixel MLo
--[[
['burgerjob'] = {
vector3(-1178.24, -896.34, 13.98)
},
]]
--Gabz MLo
['burgerjob'] = {
vector3(-1198.15, -897.64, 13.8)
},
Config.BossMenuZones = {
```lua
--Nopixel MLo
--[[
['burgerjob'] = {
{ coords = vector3(-1178.24, -896.34, 13.98), length = 1.15, width = 2.6, heading = 35, minZ = 10.78, maxZ = 14.78 },
},
]]
--Gabz Mlo
['burgerjob'] = {
{ coords = vector3(-1198.15, -897.64, 13.8), length = 1.15, width = 2.6, heading = 35, minZ = 10.78, maxZ = 14.78 },
},
```
Step 7
Find the folder qb-doorlock/configs
Create a new lua file named BurgerShot.lua
Оpen the uWu.lua file you just created
Enter the code below
-- FoodChain created by 232 km/h
Config.DoorList['BurgerShot-FoodChain'] = {
authorizedJobs = { ['burgerjob'] = 0 },
distance = 2,
locked = true,
doors = {
{objName = -186646702, objYaw = 213.99998474121, objCoords = vec3(-1199.029175, -885.166382, 14.240462)},
{objName = 1934064671, objYaw = 213.99998474121, objCoords = vec3(-1196.542603, -883.489136, 14.240462)}
},
doorRate = 1.0,
doorLabel = 'Door',
pickable = true,
doorType = 'double',
}
-- FoodChain2 created by 232 km/h
Config.DoorList['BurgerShot-FoodChain2'] = {
authorizedJobs = { ['burgerjob'] = 0 },
distance = 2,
locked = true,
doors = {
{objName = -186646702, objYaw = 123.99998474121, objCoords = vec3(-1184.902100, -883.294312, 14.240462)},
{objName = 1934064671, objYaw = 123.99998474121, objCoords = vec3(-1183.221191, -885.786316, 14.240462)}
},
doorRate = 1.0,
pickable = true,
doorLabel = 'Door',
doorType = 'double',
}
-- FoodChain3 created by 232 km/h
Config.DoorList['BurgerShot-FoodChain3'] = {
authorizedJobs = { ['burgerjob'] = 0 },
distance = 2,
doorLabel = 'Door',
objYaw = 124.0,
objCoords = vec3(-1179.220947, -891.500488, 14.093996),
fixText = false,
locked = true,
doorRate = 1.0,
doorType = 'door',
pickable = true,
objName = -1300743830,
}
-- FoodChain4 created by 232 km/h
Config.DoorList['BurgerShot-FoodChain4'] = {
authorizedJobs = { ['burgerjob'] = 0 },
distance = 1,
doorLabel = 'Door',
objYaw = 304.0,
objCoords = vec3(-1199.356567, -903.874084, 14.079839),
fixText = false,
locked = true,
doorRate = 1.0,
doorType = 'door',
pickable = true,
objName = -1300743830,
}
-- Foodchain5 created by 232 km/h
Config.DoorList['BurgerShot-Foodchain5'] = {
authorizedJobs = { ['burgerjob'] = 0 },
fixText = false,
doorLabel = 'Door',
objName = -1448591934,
doorType = 'door',
objCoords = vec3(-1201.111450, -892.965149, 14.244482),
objYaw = 34.000019073486,
distance = 2,
doorRate = 1.0,
pickable = true,
locked = true,
}
-- Foodchain6 created by 232 km/h
Config.DoorList['BurgerShot-Foodchain6'] = {
pickable = true,
doorType = 'door',
objCoords = vec3(-1193.975952, -900.427612, 14.242723),
distance = 2,
objName = -1448591934,
fixText = false,
authorizedJobs = { ['burgerjob'] = 0 },
doorLabel = 'Door',
doorRate = 1.0,
locked = true,
objYaw = 124.0,
}
-- Boss created by 232 km/h
Config.DoorList['BurgerShot-Boss'] = {
doorLabel = 'DOor',
fixText = false,
distance = 2,
objCoords = vec3(-1182.097412, -895.497498, 14.138298),
objName = 1042741067,
doorType = 'door',
locked = true,
objYaw = 213.99998474121,
authorizedJobs = { ['burgerjob'] = 4 },
pickable = true,
doorRate = 1.0,
}
Step 8 (Info / This is an optional step)
Config
CoreScriptName
'vt-core' or 'qb-core' This is a change to your resource name, namely core, the original one which is QBCore
CoreName
'VTCore' or 'QBCore' This is a change to your resource name, namely core, the original one which is QBCore
Fuel
Shooting the fuel script!
Phone
Shooting the phone script!
OXSupport
Supports 'Context Menu, Input Dialog, Progress - 'Circle', Skill Check
Lockpick
Supports ps and ox mini games
MLOSupport
Choice between nopixel mlo and gabz mlo
Progressbar
Standard progress bar or ox progress bar
System
JUST CHANGE THE NAMES OF THE SCRIPTS, IF YOU USE OTHER SCRIPTS THAN THE ORIGINAL SCRIPTS THEY WILL NOT WORK, BUT IF YOU JUST CHANGE THE NAMES OF THE RESOURCE ITSELF IT WILL WORK WITHOUT ANY PROBLEMS.)
Bulling System
All settings for the invoice systemMinigameMinigame
Minigame
Settings to ps-ui minigame
Items Delivery
It is clear
Delivery
These are just the coordinates for Delivery
Burger Job Create Item List
All items when creating items
Toy Items
It is clear
Garage and Delivery Mision
Any settings for the garage and delivery, such as prices, peds, etc
Items
All Items that employees buy to do given things!
Done.Have fun wisely and if you buy the resource don't share it or try to resell it. The resource has reserved licensed rights 👏
Last updated