Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Created August 5, 2023 07:07
Show Gist options
  • Save aqade/3ccaf20402e28566610959e17d9af474 to your computer and use it in GitHub Desktop.
Save aqade/3ccaf20402e28566610959e17d9af474 to your computer and use it in GitHub Desktop.
apex_upnatom
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
-- ██╗ ██████╗ ██████╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
-- ██║██╔═══██╗██╔══██╗ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
-- ██║██║ ██║██████╔╝ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██ ██║██║ ██║██╔══██╗ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚█████╔╝╚██████╔╝██████╔╝ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Name = "Up 'N' Atom"
Config.Jobname = "upnatom"
Config.Blips = {
{
enabled = true,
point = vector3(88.05, 286.25, 110.21),
sprite = 368,
scale = 0.6,
colour = 59,
title = Config.Name,
},
}
Config.Features = {
RemoveNPCsFromLocation = true, -- Disable random NPCs spawning inside the club
RemoveNPCsFromLocationSettings = {
{
coords = vector3(88.05, 286.25, 110.21),
radius = 20.0,
},
},
Office = true,
OfficeSettings = {
Target = {
{
points = vector3(81.33, 297.28, 110.28),
heading = 340.0,
minZ = 110.28-1,
maxZ = 110.28+0.5,
Size = {1.2, 2.2},
distance = 2.0,
},
},
},
Duty = true, -- This is a QBCore function, set it to false, if using ESX!
DutySettings = {
Target = {
{
points = vector3(87.7, 298.27, 110.21),
heading = 340.0,
minZ = 110.21+0.1,
maxZ = 110.21+0.45,
Size = {0.35, 0.4},
distance = 2.0,
},
},
},
Wardrobe = true,
WardrobeSettings = {
Target = {
{
points = vector3(85.53, 293.53, 110.21),
heading = 340.0,
minZ = 110.21-1,
maxZ = 110.21+1.1,
Size = {1.0, 3.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 = "milk", price = 5, amount = 50, info = {}, type = "item", slot = 6, },
{ name = "onion", price = 5, amount = 50, info = {}, type = "item", slot = 7, },
{ name = "tomato", price = 5, amount = 50, info = {}, type = "item", slot = 8, },
-- { 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},
-- },
-- },
},
CuttingboardEnabled = true,
Cuttingboard = {
{
label = "Onion Slices",
ingredients = {
{name = "onion", amount = 1},
},
output = {
{name = "onionslice", amount = 2},
},
},
-- {
-- 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 = {
Cuttingboard = {
{
Coords = vector3(96.92, 293.1, 110.21),
Heading = 340.0,
Size = {3.4, 0.9},
Distance = 2.5,
minZ = 110.21-1,
maxZ = 110.21+0.3,
},
},
Prepareboard = {
{
Coords = vector3(93.08, 290.81, 110.21),
Heading = 340.0,
Size = {0.95, 1.8},
Distance = 2.5,
minZ = 110.21-1,
maxZ = 110.21+0.3,
},
},
Grill = {
{
Coords = vector3(93.98, 291.81, 110.21),
Heading = 340.0,
Size = {1.5, 1},
Distance = 1.5,
minZ = 110.21-0.2,
maxZ = 110.21+0.3,
},
},
Fryer = {
{
Coords = vector3(92.98, 292.2, 110.21),
Heading = 340.0,
Size = {1.5, 0.9},
Distance = 1.5,
minZ = 110.21-0.2,
maxZ = 110.21+0.3,
},
},
Storage = {
{
Coords = vector3(91.65, 288.74, 110.21),
Heading = 295.0,
Size = {0.7, 1.6},
Distance = 1.5,
minZ = 110.21-0.1,
maxZ = 110.21+1,
},
},
Ingredients = {
{
Coords = vector3(89.57, 294.11, 110.21),
Heading = 340.0,
Size = {0.4, 1.8},
Distance = 2.0,
minZ = 110.21-1,
maxZ = 110.21+1.5,
},
},
Freezer = {
{
Coords = vector3(88.79, 292.05, 110.21),
Heading = 340.0,
Size = {0.4, 1.8},
Distance = 2.0,
minZ = 110.21-1,
maxZ = 110.21+1.5,
},
},
DrinkMachine = {
{
Coords = vector3(92.94, 287.48, 110.21),
Heading = 340.0,
Size = {0.5, 1.9},
Distance = 1.5,
minZ = 110.21,
maxZ = 110.21+1,
},
},
CashRegisters = {
{
Coords = vector3(90.27, 286.49, 110.21),
Heading = 25.0,
Size = {0.4, 0.5},
Distance = 1.5,
minZ = 110.21-0.1,
maxZ = 110.21+0.45,
},
{
Coords = vector3(89.7, 287.67, 110.21),
Heading = 25.0,
Size = {0.4, 0.5},
Distance = 1.5,
minZ = 110.21-0.1,
maxZ = 110.21+0.45,
},
{
Coords = vector3(89.15, 288.82, 110.21),
Heading = 25.0,
Size = {0.4, 0.5},
Distance = 1.5,
minZ = 110.21-0.1,
maxZ = 110.21+0.45,
},
{
Coords = vector3(94.4, 284.64, 110.21),
Heading = 330.0,
Size = {0.4, 0.5},
Distance = 1.5,
minZ = 110.21+0.1,
maxZ = 110.21+0.6,
},
},
Tables = {
{ Coords = vector3(90.74, 277.52, 110.21), Heading = 340.0, Size = {0.9, 1.7}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(90.04, 275.55, 110.21), Heading = 340.0, Size = {0.95, 1.7}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(87.55, 274.34, 110.21), Heading = 340.0, Size = {1.8, 0.95}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(85.58, 275.09, 110.21), Heading = 340.0, Size = {1.7, 0.9}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(87.38, 278.20, 110.21), Heading = 25.0, Size = {0.9, 1.8}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(84.62, 282.99, 110.21), Heading = 25.0, Size = {0.9, 1.75}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(83.70, 284.93, 110.21), Heading = 25.0, Size = {0.9, 1.85}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(82.36, 292.23, 110.21), Heading = 340.0, Size = {1.75, 0.95}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(84.33, 291.51, 110.21), Heading = 340.0, Size = {1.75, 0.9}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(86.27, 290.77, 110.21), Heading = 340.0, Size = {1.75, 0.95}, Distance = 2.5, minZ = 110.21-0.3, maxZ = 110.21+0.1, },
{ Coords = vector3(86.34, 285.89, 110.21), Heading = 25.0, Size = {0.8, 0.8}, Distance = 2.5, minZ = 110.21-0.5, maxZ = 110.21+0.1, },
{ Coords = vector3(87.10, 284.40, 110.21), Heading = 25.0, Size = {0.8, 0.8}, Distance = 2.5, minZ = 110.21-0.5, maxZ = 110.21+0.1, },
},
Trays = {
{ Coords = vector3(89.18, 288.16, 110.21), Heading = 24.0, Size = {0.55, 0.4}, Distance = 2.5, minZ = 110.21-0.1, maxZ = 110.21+0.1, },
{ Coords = vector3(89.72, 286.95, 110.21), Heading = 30.0, Size = {0.55, 0.4}, Distance = 2.5, minZ = 110.21-0.1, maxZ = 110.21+0.1, },
{ Coords = vector3(90.26, 285.78, 110.21), Heading = 18.0, Size = {0.55, 0.4}, Distance = 2.5, minZ = 110.21-0.1, maxZ = 110.21+0.1, },
},
}
--███████╗███████╗ █████╗ ████████╗███████╗
--██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔════╝
--███████╗█████╗ ███████║ ██║ ███████╗
--╚════██║██╔══╝ ██╔══██║ ██║ ╚════██║
--███████║███████╗██║ ██║ ██║ ███████║
--╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
Config.Seats = {
--[[
YOU CAN ADD, REMOVE OR ADJUST AS YOU WANT FOR MORE SEATS
]]--
--[[ UP 'N' ATOM ]]--
{ coords = vector4(90.67, 278.27, 110.21, 160.0), stand = vector3(89.63, 277.91, 110.21)},
{ coords = vector4(91.31, 278.06, 110.21, 160.0), stand = vector3(89.63, 277.91, 110.21)},
{ coords = vector4(90.24, 276.98, 110.21, 340.0), stand = vector3(89.63, 277.91, 110.21)},
{ coords = vector4(90.89, 276.77, 110.21, 340.0), stand = vector3(89.63, 277.91, 110.21)},
{ coords = vector4(89.95, 276.30, 110.21, 160.0), stand = vector3(88.94, 276.02, 110.21)},
{ coords = vector4(90.62, 276.07, 110.21, 160.0), stand = vector3(88.94, 276.02, 110.21)},
{ coords = vector4(89.48, 275.03, 110.21, 340.0), stand = vector3(88.94, 276.02, 110.21)},
{ coords = vector4(90.12, 274.77, 110.21, 340.0), stand = vector3(88.94, 276.02, 110.21)},
{ coords = vector4(88.31, 274.49, 110.21, 70.0), stand = vector3(87.95, 275.51, 110.21)},
{ coords = vector4(88.08, 273.80, 110.21, 70.0), stand = vector3(87.95, 275.51, 110.21)},
{ coords = vector4(87.05, 274.91, 110.21, 250.0), stand = vector3(87.95, 275.51, 110.21)},
{ coords = vector4(86.78, 274.24, 110.21, 250.0), stand = vector3(87.95, 275.51, 110.21)},
{ coords = vector4(86.31, 275.22, 110.21, 70.0), stand = vector3(85.94, 276.2, 110.21)},
{ coords = vector4(86.09, 274.53, 110.21, 70.0), stand = vector3(85.94, 276.2, 110.21)},
{ coords = vector4(85.02, 275.59, 110.21, 250.0), stand = vector3(85.94, 276.2, 110.21)},
{ coords = vector4(84.81, 274.98, 110.21, 250.0), stand = vector3(85.94, 276.2, 110.21)},
{ coords = vector4(87.34, 277.37, 110.21, 25.0), stand = vector3(86.28, 277.68, 110.21)},
{ coords = vector4(87.95, 277.69, 110.21, 25.0), stand = vector3(86.28, 277.68, 110.21)},
{ coords = vector4(86.77, 278.66, 110.21, 205.0), stand = vector3(86.28, 277.68, 110.21)},
{ coords = vector4(87.38, 279.01, 110.21, 205.0), stand = vector3(86.28, 277.68, 110.21)},
{ coords = vector4(84.60, 282.19, 110.21, 25.0), stand = vector3(83.56, 282.43, 110.21)},
{ coords = vector4(85.21, 282.48, 110.21, 25.0), stand = vector3(83.56, 282.43, 110.21)},
{ coords = vector4(83.97, 283.51, 110.21, 205.0), stand = vector3(83.56, 282.43, 110.21)},
{ coords = vector4(84.59, 283.78, 110.21, 205.0), stand = vector3(83.56, 282.43, 110.21)},
{ coords = vector4(83.69, 284.13, 110.21, 25.0), stand = vector3(82.64, 284.48, 110.21)},
{ coords = vector4(84.32, 284.45, 110.21, 25.0), stand = vector3(82.64, 284.48, 110.21)},
{ coords = vector4(83.05, 285.47, 110.21, 205.0), stand = vector3(82.64, 284.48, 110.21)},
{ coords = vector4(83.70, 285.76, 110.21, 205.0), stand = vector3(82.64, 284.48, 110.21)},
{ coords = vector4(81.59, 292.12, 110.21, 250.0), stand = vector3(81.93, 291.03, 110.21)},
{ coords = vector4(81.85, 292.83, 110.21, 250.0), stand = vector3(81.93, 291.03, 110.21)},
{ coords = vector4(82.88, 291.62, 110.21, 70.0), stand = vector3(81.93, 291.03, 110.21)},
{ coords = vector4(83.13, 292.35, 110.21, 70.0), stand = vector3(81.93, 291.03, 110.21)},
{ coords = vector4(83.55, 291.40, 110.21, 250.0), stand = vector3(83.91, 290.38, 110.21)},
{ coords = vector4(83.80, 292.08, 110.21, 250.0), stand = vector3(83.91, 290.38, 110.21)},
{ coords = vector4(84.84, 290.96, 110.21, 70.0), stand = vector3(83.91, 290.38, 110.21)},
{ coords = vector4(85.10, 291.62, 110.21, 70.0), stand = vector3(83.91, 290.38, 110.21)},
{ coords = vector4(85.55, 290.69, 110.21, 250.0), stand = vector3(85.82, 289.61, 110.21)},
{ coords = vector4(85.78, 291.34, 110.21, 250.0), stand = vector3(85.82, 289.61, 110.21)},
{ coords = vector4(86.84, 290.21, 110.21, 70.0), stand = vector3(85.82, 289.61, 110.21)},
{ coords = vector4(87.07, 290.89, 110.21, 70.0), stand = vector3(85.82, 289.61, 110.21)},
{ coords = vector4(87.24, 283.35, 110.21, 25.0), stand = vector3(86.48, 285.02, 110.21)},
{ coords = vector4(86.41, 283.64, 110.21, 30.0), stand = vector3(86.48, 285.02, 110.21)},
{ coords = vector4(86.02, 284.42, 110.21, 30.0), stand = vector3(86.48, 285.02, 110.21)},
{ coords = vector4(85.71, 285.10, 110.21, 30.0), stand = vector3(86.48, 285.02, 110.21)},
{ coords = vector4(85.37, 285.92, 110.21, 30.0), stand = vector3(86.48, 285.02, 110.21)},
{ coords = vector4(85.56, 286.72, 110.21, 205.0), stand = vector3(86.48, 285.02, 110.21)},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment