🛠️Config
TZMCAtomConfig = {}
--[[
INSTALLATION
If you're having issues please contact hello@tzmc.dev and we can help out.
-- QB INVENTORY LABELS --
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/nerohiro/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/jdsbJp21 - It should look like this https://ibb.co/mTBdpHR
3. Once added, navigate to .../[qb]/qb-inventory/html/images/ - Paste the following pictures into the images folder https://drive.google.com/file/d/1VHmjCqBJIBKl1qiSgPp8e_YbZvTxubA6/view?usp=share_link.
4. You are now done.
Within your server, you'll need to find where you would like employees to collect produce. These can be integrated with farmer scripts you may have or you can simply add these to your existing stores.
-- ADD ITEMS TO CONSUMABLE QB --
1. Navigate to .../[qb]/qb-smallresources/server/consumables.lua
2. Paste the following text underneath line 1 - https://pastebin.com/aBRCpz31.
3. Once added, head over to .../[qb]/qb-smallresources/config.lua
4. Within the 'ConsumeablesEat' section, paste the following text at the bottom of the table.
["nuggetsatom"] = math.random(40, 50),
["friesatom"] = math.random(25, 35),
["singleatom"] = math.random(40, 50),
["doubleatom"] = math.random(60, 70),
["breakfastatom"] = math.random(40, 50),
5. Within the 'ConsumeablesDrink' section, paste the following text at the bottom of the table.
["sprunkatom"] = math.random(40, 50),
["ecolaatom"] = math.random(40, 50),
["slushieatom"] = math.random(50, 60),
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, it should look like this https://ibb.co/wc7Mrk8.
-- 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/quyKktdd - It should look like this https://ibb.co/80TZfWs.
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 == 'upnatom' - It should look like this https://ibb.co/0YMvg93
-- 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 following text underneath that line https://pastebin.com/u6Eg0dwt
--]]
-- MENU ITEMS --
TZMCAtomConfig.DrinkDispenserItems = {
{
name = "Sprunk",
context = "The Essence of Life",
itemName = "sprunkatom",
disabled = false,
image = "https://static.wikia.nocookie.net/gtawiki/images/9/96/Sprunk-HDUniverse-Logo.png",
itemsRequired = {
["atomcup"] = 1
},
},
{
name = "Ecola",
context = "Deliciously infectious!",
itemName = "ecolaatom",
disabled = false,
image = "https://static.wikia.nocookie.net/gtawiki/images/9/94/E-Cola-logo.png",
itemsRequired = {
["atomcup"] = 1
},
}
}
TZMCAtomConfig.FryerItems = {
{
name = "Fries",
context = "Potato, Cooking Oil",
itemName = "friesatom",
disabled = false,
image = "https://i.ibb.co/nQydVmM/upnatomfries-lg.png",
itemsRequired = {
["potatoes"] = 1,
["cookingoil"] = 1,
},
},
{
name = "Chicken Nuggets",
context = "Chicken, Cooking Oil",
itemName = "nuggetsatom",
disabled = false,
image = "https://i.ibb.co/x2PRJWT/atomchickennuggets-lg.png",
itemsRequired = {
["chicken"] = 1,
["cookingoil"] = 1,
},
}
}
TZMCAtomConfig.GrillItems = {
{
name = "Single Atom",
context = "1x Patty, Cheese, Buns, Lettuce, Tomato",
itemName = "singleatom",
disabled = false,
image = "https://i.ibb.co/MSDhVNc/singleburger-lg.png",
itemsRequired = {
["patty"] = 1,
["buns"] = 1,
["lettuce"] = 1,
["tomato"] = 1,
["cheese"] = 1
},
},
{
name = "Double Atom",
context = "2x Patty, 2x Cheese, Buns, Lettuce, Tomato",
itemName = "doubleatom",
disabled = false,
image = "https://i.ibb.co/vZ3RMy0/doubleburger-lg.png",
itemsRequired = {
["patty"] = 2,
["buns"] = 1,
["lettuce"] = 1,
["tomato"] = 1,
["cheese"] = 2
},
},
{
name = "Atom Breakfast Bun",
context = "1x Patty, Buns, Egg, Cheese",
itemName = "breakfastatom",
disabled = false,
image = "https://i.ibb.co/1JBQ7pZ/atom-breakfast.png",
itemsRequired = {
["patty"] = 1,
["buns"] = 1,
["egg"] = 1,
["cheese"] = 1,
},
}
}
-- BOSS MENU --
TZMCAtomConfig.EnableBossMenuLogin = true
-- QBCore --
TZMCAtomConfig.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.
-- TARGET --
TZMCAtomConfig.OpenText = "Open"
TZMCAtomConfig.CollectCupText = "Collect Cup"
TZMCAtomConfig.MakeSlushieText = "Make Slushie"
TZMCAtomConfig.CookText = "Cook"
TZMCAtomConfig.MakeDrinkText = "Make a Drink"
TZMCAtomConfig.OnOffDutyText = "On/Off Duty"
TZMCAtomConfig.LockerText = "Change Outfit"
TZMCAtomConfig.BossLoginText = "Login"
TZMCAtomConfig.OnOffDutyIcon = "fa-solid fa-clipboard"
TZMCAtomConfig.LockerIcon = "fa-solid fa-shirt"
TZMCAtomConfig.CounterIcon = "fa-solid fa-burger"
TZMCAtomConfig.FridgeIcon = "fa-solid fa-snowflake"
TZMCAtomConfig.CupIcon = "fa-solid fa-mug-hot"
TZMCAtomConfig.SlushieIcon = "fa-solid fa-snowflake"
TZMCAtomConfig.CookIcon = "fa-solid fa-burger"
TZMCAtomConfig.BossLoginIcon = "fa-solid fa-briefcase"
-- STASH CONFIG --
TZMCAtomConfig.ItemCollectionStashName = "Counter"
TZMCAtomConfig.ItemCollectionStashConfig = {
weight = 5000,
slots = 5
}
TZMCAtomConfig.TableStashName = "Table"
TZMCAtomConfig.TableStashConfig = {
weight = 5000,
slots = 5
}
TZMCAtomConfig.FoodPassStashName = "Food Pass"
TZMCAtomConfig.FoodPassStashConfig = {
weight = 25000,
slots = 25
}
TZMCAtomConfig.FridgeStashName = "Fridge"
TZMCAtomConfig.FridgeStashConfig = {
weight = 50000,
slots = 50
}
-- PROGRESS BAR --
TZMCAtomConfig.MakingDrink = "Making Drink"
TZMCAtomConfig.DrinkProgressBarTime = 7
TZMCAtomConfig.Cooking = "Cooking"
TZMCAtomConfig.CookingTime = 7
-- NOTIFICATIONS --
TZMCAtomConfig.UseQBNotify = true
TZMCAtomConfig.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'.
TZMCAtomConfig.SuccessTitle = 'Success'
TZMCAtomConfig.ErrorTitle = 'Error'
TZMCAtomConfig.NoItems = "Seems that you don't have enough items to craft this."
Last updated