Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Created January 8, 2024 09:47
Show Gist options
  • Save aqade/5bab976030e73de9938b41bfcb96bbcf to your computer and use it in GitHub Desktop.
Save aqade/5bab976030e73de9938b41bfcb96bbcf to your computer and use it in GitHub Desktop.
apex_snrbuns
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
-- ██╗ ██████╗ ██████╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
-- ██║██╔═══██╗██╔══██╗ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
-- ██║██║ ██║██████╔╝ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██ ██║██║ ██║██╔══██╗ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚█████╔╝╚██████╔╝██████╔╝ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Name = "Snr Buns"
Config.Jobname = "snrbuns"
Config.Blips = {
{
enabled = true,
point = vector3(-509.9, -696.46, 33.67),
sprite = 766,
scale = 0.8,
colour = 61,
title = Config.Name,
},
}
Config.Features = {
RemoveNPCsFromLocation = true, -- Disable random NPCs spawning inside the club
RemoveNPCsFromLocationSettings = {
{
coords = vector3(-509.9, -696.46, 33.67),
radius = 20.0,
},
},
Office = true,
OfficeSettings = {
Target = {
{
points = vector3(-505.81, -700.55, 33.67),
heading = 3.0,
minZ = 33.67-0.15,
maxZ = 33.67+0.5,
Size = {0.85, 0.2},
distance = 2.0,
},
},
},
Duty = true, -- This is a QBCore function, set it to false, if using ESX!
DutySettings = {
Target = {
{
points = vector3(-504.54, -696.19, 33.67),
heading = 0.0,
minZ = 33.67-0.3,
maxZ = 33.67+0.3,
Size = {0.3, 0.3},
distance = 2.0,
},
},
},
Wardrobe = true,
WardrobeSettings = {
Target = {
{
points = vector3(-500.39, -701.32, 33.67),
heading = 0.0,
minZ = 33.67-1,
maxZ = 33.67+1.2,
Size = {4.0, 1.8},
distance = 2.0,
},
},
ClothingStore = true,
ClothingStoreTrigger = "qb-clothing:client:openMenu",
--[[
- qb-clothing:client:openMenu (default qbcore)
- illenium-appearance:client:openClothingShop (illenium-appearance)
- Or you can add your own trigger if you are using something else.
]]--
OutfitMenu = true,
OutfitMenuTrigger = "qb-clothing:client:openOutfitMenu",
--[[
- qb-clothing:client:openOutfitMenu (default qbcore)
- illenium-appearance:client:openOutfitMenu (illenium-appearance)
- Or you can add your own trigger if you are using something else.
]]--
PersonalLocker = true,
},
Table = true,
TableSettings = {
Size = 10000,
Slots = 10,
},
Tray = true,
TraySettings = {
Size = 10000,
Slots = 10,
},
Storage = true,
StorageSettings = {
Size = 4000000,
Slots = 500,
},
Ingredients = true,
IngredientsSettings = {
shelves = {
label = "Ingredients",
slots = 15,
items = {
{ name = "bacon", price = 5, amount = 50, info = {}, type = "item", slot = 1, },
{ name = "beefraw", price = 5, amount = 50, info = {}, type = "item", slot = 2, },
{ name = "bun", price = 5, amount = 50, info = {}, type = "item", slot = 3, },
{ name = "cheese", price = 5, amount = 50, info = {}, type = "item", slot = 4, },
{ name = "lettuce", price = 5, amount = 50, info = {}, type = "item", slot = 5, },
{ name = "onionslice", price = 5, amount = 50, info = {}, type = "item", slot = 6, },
{ name = "tomato", price = 5, amount = 50, info = {}, type = "item", slot = 7, },
-- { name = "itemname", price = 0, amount = 0, info = {}, type = "item", slot = 11, },
},
},
},
Freezer = true,
FreezerSettings = {
shelves = {
label = "Freezer",
slots = 5,
items = {
{ name = "frozennuggets", price = 5, amount = 50, info = {}, type = "item", slot = 1, },
{ name = "frozenfries", price = 5, amount = 50, info = {}, type = "item", slot = 2, },
-- { name = "itemname", price = 0, amount = 0, info = {}, type = "item", slot = 2, },
},
},
},
DrinkMachine = true,
DrinkMachineSettings = {
shelves = {
label = "Drink Machine",
slots = 5,
items = {
{ name = "soda", price = 5, amount = 20, info = {}, type = "item", slot = 1, },
{ name = "creamy", price = 5, amount = 20, info = {}, type = "item", slot = 2, },
{ name = "milkshake", price = 5, amount = 20, info = {}, type = "item", slot = 3, },
{ name = "icecream", price = 5, amount = 20, info = {}, type = "item", slot = 4, },
-- { name = "itemname", price = 0, amount = 0, info = {}, type = "item", slot = 2, },
},
},
},
Kitchen = true,
KitchenSettings = {
FoodMakingDuration = 10, -- Duration in seconds
Recipes = {
GrillEnabled = true,
Grill = {
{
label = "Beef",
ingredients = {
{name = "beefraw", amount = 1},
},
output = {
{name = "beef", amount = 1},
},
},
-- {
-- label = "Name of Food",
-- ingredients = {
-- {name = "itemname", amount = 1},
-- },
-- output = {
-- {name = "itemname", amount = 1},
-- },
-- },
},
FryerEnabled = true,
Fryer = {
{
label = "French Fries",
ingredients = {
{name = "frozenfries", amount = 1},
},
output = {
{name = "fries", amount = 1},
},
},
{
label = "Onion Rings",
ingredients = {
{name = "onionslice", amount = 1},
},
output = {
{name = "onion_rings", amount = 1},
},
},
{
label = "Chicken Nuggets",
ingredients = {
{name = "frozennuggets", amount = 1},
},
output = {
{name = "nuggets", amount = 1},
},
},
-- {
-- label = "Name of Food",
-- ingredients = {
-- {name = "itemname", amount = 1},
-- },
-- output = {
-- {name = "itemname", amount = 1},
-- },
-- },
},
PrepareboardEnabled = true,
Prepareboard = {
{
label = "Heart Stopper",
ingredients = {
{name = "bacon", amount = 1},
{name = "beef", amount = 1},
{name = "bun", amount = 1},
{name = "cheese", amount = 1},
{name = "lettuce", amount = 1},
{name = "onionslice", amount = 1},
{name = "tomato", amount = 1},
},
output = {
{name = "heartstopper", amount = 2},
},
},
{
label = "Bleeder",
ingredients = {
{name = "bacon", amount = 1},
{name = "beef", amount = 1},
{name = "bun", amount = 1},
{name = "cheese", amount = 1},
{name = "tomato", amount = 1},
},
output = {
{name = "bleeder", amount = 2},
},
},
{
label = "Torpedo",
ingredients = {
{name = "beef", amount = 1},
{name = "bun", amount = 1},
{name = "cheese", amount = 1},
{name = "lettuce", amount = 1},
{name = "onionslice", amount = 1},
},
output = {
{name = "torpedo", amount = 2},
},
},
{
label = "Money Shot",
ingredients = {
{name = "bacon", amount = 1},
{name = "beef", amount = 1},
{name = "bun", amount = 1},
{name = "lettuce", amount = 1},
{name = "onionslice", amount = 1},
{name = "tomato", amount = 1},
},
output = {
{name = "moneyshot", amount = 2},
},
},
-- {
-- label = "Name of Food",
-- ingredients = {
-- {name = "itemname", amount = 1},
-- },
-- output = {
-- {name = "itemname", amount = 1},
-- },
-- },
},
}
},
}
--████████╗ █████╗ ██████╗ ██████╗ ███████╗████████╗███████╗
--╚══██╔══╝██╔══██╗██╔══██╗██╔════╝ ██╔════╝╚══██╔══╝██╔════╝
-- ██║ ███████║██████╔╝██║ ███╗█████╗ ██║ ███████╗
-- ██║ ██╔══██║██╔══██╗██║ ██║██╔══╝ ██║ ╚════██║
-- ██║ ██║ ██║██║ ██║╚██████╔╝███████╗ ██║ ███████║
-- ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝
Config.AdditionalTargets = {
Prepareboard = {
{
Coords = vector3(-505.01, -687.97, 33.67),
Heading = 0.0,
Size = {1.0, 1.6},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
{
Coords = vector3(-502.15, -685.48, 33.67),
Heading = 0.0,
Size = {0.9, 1.0},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
{
Coords = vector3(-502.15, -682.64, 33.67),
Heading = 0.0,
Size = {1.6, 1.0},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
},
Grill = {
{
Coords = vector3(-504.54, -686.73, 33.67),
Heading = 0.0,
Size = {1.5, 1},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
{
Coords = vector3(-504.56, -684.57, 33.67),
Heading = 0.0,
Size = {1.9, 1},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
},
Fryer = {
{
Coords = vector3(-505.57, -684.34, 33.67),
Heading = 0.0,
Size = {1.45, 1},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
{
Coords = vector3(-505.57, -686.72, 33.67),
Heading = 0.0,
Size = {1.45, 1},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+0.3,
},
},
Storage = {
{
Coords = vector3(-506.76, -691.29, 33.67),
Heading = 0.0,
Size = {0.6, 1.6},
Distance = 2.5,
minZ = 33.67,
maxZ = 33.67+1.4,
},
},
Ingredients = {
{
Coords = vector3(-507.75, -686.26, 33.67),
Heading = 0.0,
Size = {3.3, 0.2},
Distance = 1.5,
minZ = 33.67-1,
maxZ = 33.67+1.5,
},
},
Freezer = {
{
Coords = vector3(-509.17, -682.27, 33.67),
Heading = 0.0,
Size = {4.2, 2.0},
Distance = 2.0,
minZ = 33.67-1,
maxZ = 33.67+1.5,
},
},
DrinkMachine = {
{
Coords = vector3(-505.15, -696.8, 33.67),
Heading = 0.0,
Size = {3.0, 0.6},
Distance = 2.0,
minZ = 33.67,
maxZ = 33.67+1,
},
},
CashRegisters = {
{
Coords = vector3(-508.17, -694.43, 33.59),
Heading = 0.0,
Size = {0.5, 0.6},
Distance = 1.5,
minZ = 33.59-0.05,
maxZ = 33.59+0.65,
},
{
Coords = vector3(-508.17, -695.91, 33.59),
Heading = 0.0,
Size = {0.5, 0.6},
Distance = 1.5,
minZ = 33.59-0.05,
maxZ = 33.59+0.65,
},
{
Coords = vector3(-508.17, -697.48, 33.59),
Heading = 0.0,
Size = {0.5, 0.6},
Distance = 1.5,
minZ = 33.59-0.05,
maxZ = 33.59+0.65,
},
},
Tables = {
{ Coords = vector3(-509.40, -702.25, 33.67), Heading = 347.0, Size = {1.8, 1.00}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-512.19, -701.01, 33.67), Heading = 322.0, Size = {1.8, 1.00}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-514.02, -698.59, 33.67), Heading = 295.0, Size = {1.8, 1.00}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-514.76, -695.63, 33.67), Heading = 276.0, Size = {1.8, 1.00}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-514.82, -686.84, 33.67), Heading = 270.0, Size = {1.8, 1.25}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-512.21, -686.85, 33.67), Heading = 270.0, Size = {1.8, 1.25}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
{ Coords = vector3(-509.59, -686.84, 33.67), Heading = 270.0, Size = {1.8, 1.25}, Distance = 1.5, minZ = 33.67-0.3, maxZ = 33.67, },
},
Trays = {
{ Coords = vector3(-508.32, -695.18, 33.59), Heading = 5.0, Size = {0.6, 0.4}, Distance = 2.5, minZ = 33.59-0.1, maxZ = 33.59+0.3, },
{ Coords = vector3(-508.39, -696.68, 33.59), Heading = 0.0, Size = {0.6, 0.4}, Distance = 2.5, minZ = 33.59-0.1, maxZ = 33.59+0.3, },
{ Coords = vector3(-508.42, -698.27, 33.59), Heading = 5.0, Size = {0.6, 0.4}, Distance = 2.5, minZ = 33.59-0.1, maxZ = 33.59+0.3, },
},
}
--███████╗███████╗ █████╗ ████████╗███████╗
--██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔════╝
--███████╗█████╗ ███████║ ██║ ███████╗
--╚════██║██╔══╝ ██╔══██║ ██║ ╚════██║
--███████║███████╗██║ ██║ ██║ ███████║
--╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
Config.Seats = {
--[[
YOU CAN ADD, REMOVE OR ADJUST AS YOU WANT FOR MORE SEATS
]]--
--[[ SNR BUNS ]]--
{ coords = vector4(-508.39, -702.02, 33.67, 90.99), stand = vector3(-509.14, -700.89, 33.67)},
{ coords = vector4(-508.35, -702.77, 33.67, 90.99), stand = vector3(-509.14, -700.89, 33.67)},
{ coords = vector4(-510.63, -702.33, 33.67, 245.5), stand = vector3(-509.14, -700.89, 33.67)},
{ coords = vector4(-510.29, -701.74, 33.67, 245.5), stand = vector3(-509.14, -700.89, 33.67)},
{ coords = vector4(-511.14, -701.23, 33.67, 65.97), stand = vector3(-511.22, -699.70, 33.67)},
{ coords = vector4(-511.46, -701.94, 33.67, 65.97), stand = vector3(-511.22, -699.70, 33.67)},
{ coords = vector4(-513.24, -700.48, 33.67, 218.2), stand = vector3(-511.22, -699.70, 33.67)},
{ coords = vector4(-512.58, -699.96, 33.67, 218.2), stand = vector3(-511.22, -699.70, 33.67)},
{ coords = vector4(-513.18, -699.30, 33.67, 38.97), stand = vector3(-512.58, -697.95, 33.67)},
{ coords = vector4(-513.73, -699.71, 33.67, 38.97), stand = vector3(-512.58, -697.95, 33.67)},
{ coords = vector4(-514.73, -697.67, 33.67, 193.5), stand = vector3(-512.58, -697.95, 33.67)},
{ coords = vector4(-514.09, -697.48, 33.67, 193.5), stand = vector3(-512.58, -697.95, 33.67)},
{ coords = vector4(-514.20, -696.62, 33.67, 15.50), stand = vector3(-513.27, -695.48, 33.67)},
{ coords = vector4(-514.99, -696.77, 33.67, 15.50), stand = vector3(-513.27, -695.48, 33.67)},
{ coords = vector4(-515.23, -694.60, 33.67, 180.0), stand = vector3(-513.27, -695.48, 33.67)},
{ coords = vector4(-514.37, -694.55, 33.67, 180.0), stand = vector3(-513.27, -695.48, 33.67)},
{ coords = vector4(-514.48, -687.95, 33.67, 0.0), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-515.11, -687.95, 33.67, 0.0), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-515.11, -685.67, 33.67, 180.0), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-514.48, -685.67, 33.67, 180.0), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-511.85, -687.95, 33.67, 0.0), stand = vector3(-510.92, -686.97, 33.67)},
{ coords = vector4(-512.61, -687.95, 33.67, 0.0), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-512.61, -685.67, 33.67, 180.00), stand = vector3(-513.52, -686.89, 33.67)},
{ coords = vector4(-511.85, -685.67, 33.67, 180.00), stand = vector3(-510.92, -686.97, 33.67)},
{ coords = vector4(-509.20, -687.95, 33.67, 0.0), stand = vector3(-510.92, -686.97, 33.67)},
{ coords = vector4(-509.94, -687.95, 33.67, 0.0), stand = vector3(-510.92, -686.97, 33.67)},
{ coords = vector4(-509.94, -685.67, 33.67, 180.00), stand = vector3(-510.92, -686.97, 33.67)},
{ coords = vector4(-509.26, -685.67, 33.67, 180.00), stand = vector3(-510.92, -686.97, 33.67)},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment