🛠️Config
TZMCBurgerShotConfig = {}
--[[
INSTALLATION
If you're having issues please contact hello@tzmc.dev and we can help out.
-- QB INVENTORY LABELS (THIS IS ONLY APPLICABLE IF YOU'RE USING LEGACY QBCORE) --
1. Navigate to ..[qb]\qb-inventory\server\main.lua
2. Navigate to around line 632 just below the if statement "if other then"
3. Underneath that if statement, paste the following text
if other.label == nil then
secondInv.label = "Stash-"..id
else
secondInv.label = other.label
end
4. Once pasted, delete the duplicate "secondInv.name = "stash-"..id" that is underneath the if statement you just pasted.
5. You're done, it should look like this. https://ibb.co/31pXjWL
-- nh-context --
This script requires nh-context which you can install here: https://github.com/nighmares/nh-context
-- QB ITEMS --
1. Navigate to .../[qb]/qb-core/shared/items.lua
2. Scroll to the bottom of the item list and paste the following text - https://pastebin.com/ZvRsnvx0
3. Once added, navigate to .../[qb]/qb-inventory/html/images/ - Paste the following pictures into the images folder https://drive.google.com/file/d/1cvR6Rr5_8G1S6fapKlNhkNrpSJf0_Uq4/view?usp=sharing
4. You are now done.
-- ADD ITEMS TO CONSUMABLE QB --
If you're using legacy QBCore, skip to step 3 :)
1. Navigate to .../[qb]/qb-smallresources/server/consumables.lua
2. Paste the following text underneath line 1 - https://pastebin.com/fYZGWMFS
3. Once added, head over to .../[qb]/qb-smallresources/config.lua
4. Within the 'Consumables' section, paste the following text at the bottom of the table.
["nuggetsburgershot"] = math.random(40, 50),
["friesburgershot"] = math.random(25, 35),
["bleeder"] = math.random(40, 50),
["heartstopper"] = math.random(60, 70),
["roosterbooster"] = math.random(40, 50),
5. Within the 'ConsumeablesDrink' section, paste the following text at the bottom of the table.
["sprunk"] = math.random(40, 50),
["ecola"] = math.random(40, 50),
These just set a random value to increase the hunger or thirst amount for each item. You can set these to whatever you'd like if you would like certain items to quench thirst quicker.
6. You are now done
-- ADD JOB TO QB --
1. Navigate to ..[qb]/qb-core/shared/jobs.lua
2. Head to the bottom of the file and add the following text - https://pastebin.com/6tEF1MgD - It should look like this https://ibb.co/fCn8fGq.
3. Once added, navigate to ...[qb]/qb-phone/server/main.lua
4. Navigate to QBCore.Commands.Add('bill'... around line 1065
5. Replace the first if statement condition with the following text - ... or biller.PlayerData.job.name == 'burgershot' - It should look like this https://ibb.co/Mp3znrB
-- ADD GABZ DOORS TO QB --
If you're yet to add the doors within QB, you can follow these instructions bellow to allow employees to unlock/lock doors within the venue.
1. Navigate to ../[qb]/qb-doorlock/config.lua
2. Head to around line 176 under the comment 'Always add new doors below this line for your bank robberies to work!!!'
3. Paste the followign text underneath that line https://pastebin.com/DWzAwA84
--]]
-- QBCore --
TZMCBurgerShotConfig.UsingLegacyQBCore = false -- If you're using an older version of QB core, giving items is slightly different. However, if you are on a recent version feel free to leave this false.
-- MENU ITEMS --
TZMCBurgerShotConfig.DrinkDispenserItems = {
{
name = "Sprunk",
context = "The Essence of Life",
itemName = "sprunk",
disabled = false,
image = "https://static.wikia.nocookie.net/gtawiki/images/9/96/Sprunk-HDUniverse-Logo.png",
itemsRequired = {
["burgershotcup"] = 1
},
},
{
name = "Ecola",
context = "Deliciously infectious!",
itemName = "ecola",
disabled = false,
image = "https://static.wikia.nocookie.net/gtawiki/images/9/94/E-Cola-logo.png",
itemsRequired = {
["burgershotcup"] = 1
},
}
}
TZMCBurgerShotConfig.FryerItems = {
{
name = "Fries",
context = "Potato, Cooking Oil",
itemName = "friesburgershot",
disabled = false,
image = "https://i.ibb.co/DpF536G/friesburgershot.png",
itemsRequired = {
["potatoes"] = 1,
["cookingoil"] = 1,
},
},
{
name = "Chicken Nuggets",
context = "Chicken, Cooking Oil",
itemName = "nuggetsburgershot",
disabled = false,
image = "https://i.ibb.co/qN7bz7t/chickennuggets.png",
itemsRequired = {
["chicken"] = 1,
["cookingoil"] = 1,
},
}
}
TZMCBurgerShotConfig.GrillItems = {
{
name = "The Bleeder",
context = "1x Patty, Cheese, Buns, Lettuce, Tomato",
itemName = "bleeder",
disabled = false,
image = "https://i.ibb.co/MSDhVNc/singleburger-lg.png",
itemsRequired = {
["patty"] = 1,
["buns"] = 1,
["lettuce"] = 1,
["tomato"] = 1,
["cheese"] = 1
},
},
{
name = "Heart Stopper",
context = "2x Patty, 2x Cheese, Buns, Lettuce, Tomato",
itemName = "heartstopper",
disabled = false,
image = "https://i.ibb.co/vZ3RMy0/doubleburger-lg.png",
itemsRequired = {
["patty"] = 2,
["buns"] = 1,
["lettuce"] = 1,
["tomato"] = 1,
["cheese"] = 2
},
},
{
name = "The Rooster Booster",
context = "1x Chicken, Buns, Lettuce",
itemName = "roosterbooster",
disabled = false,
image = "https://i.ibb.co/6sjnYcZ/Rooster-Booster.png",
itemsRequired = {
["chicken"] = 1,
["buns"] = 1,
["lettuce"] = 1,
},
}
}
-- TARGET --
TZMCBurgerShotConfig.OpenText = "Open"
TZMCBurgerShotConfig.CollectCupText = "Collect Cup"
TZMCBurgerShotConfig.CookText = "Cook"
TZMCBurgerShotConfig.MakeDrinkText = "Make a Drink"
TZMCBurgerShotConfig.OnOffDutyText = "On/Off Duty"
TZMCBurgerShotConfig.LockerText = "Change Outfit"
TZMCBurgerShotConfig.BossLoginText = "Login"
TZMCBurgerShotConfig.OnOffDutyIcon = "fa-solid fa-clipboard"
TZMCBurgerShotConfig.LockerIcon = "fa-solid fa-shirt"
TZMCBurgerShotConfig.CounterIcon = "fa-solid fa-burger"
TZMCBurgerShotConfig.FridgeIcon = "fa-solid fa-snowflake"
TZMCBurgerShotConfig.CupIcon = "fa-solid fa-mug-hot"
TZMCBurgerShotConfig.CookIcon = "fa-solid fa-burger"
TZMCBurgerShotConfig.BossLoginIcon = "fa-solid fa-briefcase"
-- STASH CONFIG --
TZMCBurgerShotConfig.ItemCollectionStashName = "Counter"
TZMCBurgerShotConfig.ItemCollectionStashConfig = {
weight = 5000,
slots = 5
}
TZMCBurgerShotConfig.TableStashName = "Table"
TZMCBurgerShotConfig.TableStashConfig = {
weight = 5000,
slots = 5
}
TZMCBurgerShotConfig.FoodPassStashName = "Food Pass"
TZMCBurgerShotConfig.FoodPassStashConfig = {
weight = 25000,
slots = 25
}
TZMCBurgerShotConfig.FridgeStashName = "Fridge"
TZMCBurgerShotConfig.FridgeStashConfig = {
weight = 50000,
slots = 50
}
-- PROGRESS BAR --
TZMCBurgerShotConfig.MakingDrink = "Making Drink"
TZMCBurgerShotConfig.DrinkProgressBarTime = 7
TZMCBurgerShotConfig.Cooking = "Cooking"
TZMCBurgerShotConfig.CookingTime = 7
-- NOTIFICATIONS --
TZMCBurgerShotConfig.UseQBNotify = true
TZMCBurgerShotConfig.NotificationEvent = "" -- If you're using your own notification system, enter the event here. If you leave this blank and set QBNotify to false this will use the FiveM chat to notify the player. The parameters are (text, status) Status can be either 'success' or 'error'.
TZMCBurgerShotConfig.SuccessTitle = 'Success'
TZMCBurgerShotConfig.ErrorTitle = 'Error'
TZMCBurgerShotConfig.NoItems = "Seems that you don't have enough items to craft this."
Last updated