Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Created August 5, 2023 07:13
Show Gist options
  • Save aqade/8dbc3aaa1e36a090bd31fea845358798 to your computer and use it in GitHub Desktop.
Save aqade/8dbc3aaa1e36a090bd31fea845358798 to your computer and use it in GitHub Desktop.
apex_galaxy
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
-- ██╗ ██████╗ ██████╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
-- ██║██╔═══██╗██╔══██╗ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
-- ██║██║ ██║██████╔╝ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██ ██║██║ ██║██╔══██╗ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚█████╔╝╚██████╔╝██████╔╝ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Name = "Galaxy Nightclub"
Config.Jobname = "galaxy"
Config.Blips = {
{
enabled = true,
point = vector3(347.57, 300.85, 101.19),
sprite = 93,
scale = 0.6,
colour = 50,
title = Config.Name,
},
}
Config.Features = {
RemoveNPCsFromLocation = true, -- Disable random NPCs spawning inside the club
RemoveNPCsFromLocationSettings = {
{
coords = vector3(359.41, 279.54, 91.19),
radius = 20.0,
},
},
Office = true,
OfficeSettings = {
Target = {
{
points = vector3(391.3, 269.21, 94.99),
heading = 33.0,
minZ = 94.99-0.2,
maxZ = 94.99+0.4,
Size = {0.4, 0.7},
distance = 2.5,
},
},
},
Duty = true, -- This is a QBCore function, set it to false, if using ESX!
DutySettings = {
Target = {
{
points = vector3(388.93, 273.3, 94.99),
heading = 33.0,
minZ = 94.99-0.2,
maxZ = 94.99+0.4,
Size = {0.4, 0.7},
distance = 2.5,
},
},
},
Wardrobe = true,
WardrobeSettings = {
Target = {
{
points = vector3(393.74, 279.64, 94.99),
heading = 345.0,
minZ = 94.99-1,
maxZ = 94.99+2,
Size = {0.4, 1.4},
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,
},
DJBooth = true,
DJBoothSettings = {
EmployeeOnly = true,
AudioVolume = 0.5,
AudioRange = 35.0,
Target = {
points = vector3(374.59, 276.19, 92.4),
heading = 345.0,
minZ = 92.4-1.0,
maxZ = 92.4+0.2,
Size = {2.0, 0.8},
distance = 2.5,
},
},
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 = "pineapplejuice", price = 5, amount = 20, info = {}, type = "item", slot = 1, },
{ name = "lemon", price = 5, amount = 20, info = {}, type = "item", slot = 2, },
{ name = "lime", price = 5, amount = 20, info = {}, type = "item", slot = 3, },
{ name = "sugar", price = 5, amount = 20, info = {}, type = "item", slot = 4, },
{ name = "mint", price = 5, amount = 20, info = {}, type = "item", slot = 5, },
{ name = "cocomilk", price = 5, amount = 20, info = {}, type = "item", slot = 6, },
{ name = "gin", price = 5, amount = 20, info = {}, type = "item", slot = 7, },
{ name = "rum", price = 5, amount = 20, info = {}, type = "item", slot = 8, },
{ name = "whiskey", price = 5, amount = 20, info = {}, type = "item", slot = 9, },
{ name = "vodka", price = 5, amount = 20, info = {}, type = "item", slot = 10, },
-- { name = "itemname", price = 0, amount = 0, info = {}, type = "item", slot = 11, },
},
},
},
Freezer = true,
FreezerSettings = {
shelves = {
label = "Freezer",
slots = 5,
items = {
{ name = "ice", price = 5, amount = 20, info = {}, type = "item", slot = 1, },
-- { name = "itemname", price = 0, amount = 0, info = {}, type = "item", slot = 2, },
},
},
},
Bartending = true,
BartendingSettings = {
Target = {
{
points = vector3(351.29, 289.32, 91.19),
heading = 345.0,
minZ = 91.19+0.1,
maxZ = 91.19+0.5,
Size = {0.6, 1.25},
distance = 2.0,
},
{
points = vector3(355.27, 281.96, 94.19),
heading = 75.0,
minZ = 94.19,
maxZ = 94.19+0.5,
Size = {0.6, 1.25},
distance = 2.0,
},
{
points = vector3(384.46, 280.71, 94.99),
heading = 345.0,
minZ = 94.99,
maxZ = 94.99+0.4,
Size = {0.6, 2.6},
distance = 2.0,
},
},
DrinkMakingDuration = 10, -- Duration in seconds
Recipes = {
{
label = "Blue Lagoon",
ingredients = {
{name = "vodka", amount = 1},
{name = "lemon", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "bluelagoon", amount = 1},
},
},
{
label = "Pinã Colada",
ingredients = {
{name = "cocomilk", amount = 1},
{name = "pineapplejuice", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "pinacolada", amount = 1},
},
},
{
label = "San Francisco",
ingredients = {
{name = "gin", amount = 1},
{name = "pineapplejuice", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "sanfrancisco", amount = 1},
},
},
{
label = "Caipirinha",
ingredients = {
{name = "rum", amount = 1},
{name = "lime", amount = 1},
{name = "sugar", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "caipirinha", amount = 1},
},
},
{
label = "Mojito",
ingredients = {
{name = "rum", amount = 1},
{name = "lime", amount = 1},
{name = "sugar", amount = 1},
{name = "mint", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "mojito", amount = 1},
},
},
{
label = "Mai Tai",
ingredients = {
{name = "rum", amount = 1},
{name = "lime", amount = 1},
{name = "pineapplejuice", amount = 1},
{name = "ice", amount = 1},
},
output = {
{name = "maitai", amount = 1},
},
},
}
}
}
--████████╗ █████╗ ██████╗ ██████╗ ███████╗████████╗███████╗
--╚══██╔══╝██╔══██╗██╔══██╗██╔════╝ ██╔════╝╚══██╔══╝██╔════╝
-- ██║ ███████║██████╔╝██║ ███╗█████╗ ██║ ███████╗
-- ██║ ██╔══██║██╔══██╗██║ ██║██╔══╝ ██║ ╚════██║
-- ██║ ██║ ██║██║ ██║╚██████╔╝███████╗ ██║ ███████║
-- ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝
Config.AdditionalTargets = {
Storage = {
{
Coords = vector3(351.94, 288.78, 91.19),
Heading = 75.0,
Size = {2.65, 0.2},
Distance = 1.5,
minZ = 91.19-1,
maxZ = 91.19-0.05,
},
{
Coords = vector3(355.81, 282.51, 94.19),
Heading = 345.0,
Size = {2.8, 0.2},
Distance = 1.5,
minZ = 94.19-1,
maxZ = 94.19-0.05,
},
},
Ingredients = {
{
Coords = vector3(354.96, 288.27, 91.19),
Heading = 345.0,
Size = {0.6, 1.8},
Distance = 1.5,
minZ = 91.19-1.0,
maxZ = 91.19+1.2,
},
{
Coords = vector3(356.77, 283.43, 94.19),
Heading = 345.0,
Size = {0.6, 0.85},
Distance = 1.5,
minZ = 94.19-1.0,
maxZ = 94.19+1.2,
},
},
Freezer = {
{
Coords = vector3(353.66, 288.41, 91.19),
Heading = 345.0,
Size = {1.05, 0.8},
Distance = 2.0,
minZ = 91.19-1,
maxZ = 91.19+0.2,
},
{
Coords = vector3(355.24, 280.77, 94.19),
Heading = 75.0,
Size = {1.05, 0.8},
Distance = 2.0,
minZ = 94.19-1,
maxZ = 94.19+0.2,
},
},
CashRegisters = {
{
Coords = vector3(344.93, 284.43, 95.79),
Heading = 294.0,
Size = {0.46, 0.35},
Distance = 1.5,
minZ = 95.79,
maxZ = 95.79+0.5,
},
{
Coords = vector3(352.14, 289.12, 91.19),
Heading = 340.0,
Size = {0.46, 0.35},
Distance = 1.5,
minZ = 91.19,
maxZ = 91.19+0.5,
},
{
Coords = vector3(355.51, 282.86, 94.19),
Heading = 70.0,
Size = {0.46, 0.35},
Distance = 1.5,
minZ = 94.19,
maxZ = 94.19+0.5,
},
},
Tables = {
{ Coords = vector3(356.30, 283.38, 91.19), Heading = 345.0, Size = {2.80, 0.6}, Distance = 1.5, minZ = 91.19-0.1, maxZ = 91.19, },
{ Coords = vector3(359.45, 283.65, 91.19), Heading = 345.0, Size = {3.85, 0.6}, Distance = 1.5, minZ = 91.19-0.1, maxZ = 91.19, },
{ Coords = vector3(357.72, 274.43, 91.19), Heading = 345.0, Size = {4.25, 0.6}, Distance = 1.5, minZ = 91.19-0.1, maxZ = 91.19, },
{ Coords = vector3(364.52, 285.64, 94.19), Heading = 75.0, Size = {2.75, 0.6}, Distance = 1.5, minZ = 94.19-0.1, maxZ = 94.19, },
{ Coords = vector3(360.71, 286.69, 94.19), Heading = 75.0, Size = {3.35, 0.6}, Distance = 1.5, minZ = 94.19-0.1, maxZ = 94.19, },
{ Coords = vector3(361.02, 271.67, 94.19), Heading = 75.0, Size = {2.95, 0.6}, Distance = 1.5, minZ = 94.19-0.1, maxZ = 94.19, },
{ Coords = vector3(371.53, 267.67, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(369.70, 266.90, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(367.86, 265.83, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(366.05, 266.21, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(364.76, 267.99, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(364.02, 266.45, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(369.46, 264.99, 94.39), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 94.39-1, maxZ = 94.39, },
{ Coords = vector3(383.04, 279.05, 94.99), Heading = 345.0, Size = {3.15, 1.0}, Distance = 1.5, minZ = 94.99-0.2, maxZ = 94.99, },
},
Trays = {
{ Coords = vector3(353.03, 285.30, 91.19), Heading = 345.0, Size = {1.05, 2.75}, Distance = 2.5, minZ = 91.19-0.1, maxZ = 91.19+0.27, },
{ Coords = vector3(350.36, 286.02, 91.19), Heading = 345.0, Size = {1.05, 2.75}, Distance = 2.5, minZ = 91.19-0.1, maxZ = 91.19+0.27, },
{ Coords = vector3(359.13, 281.55, 94.19), Heading = 75.0, Size = {1.05, 2.75}, Distance = 2.5, minZ = 94.19-0.1, maxZ = 94.19+0.27, },
{ Coords = vector3(358.59, 279.40, 94.19), Heading = 75.0, Size = {1.05, 2.75}, Distance = 2.5, minZ = 94.19-0.1, maxZ = 94.19+0.27, },
},
}
--███████╗███████╗ █████╗ ████████╗███████╗
--██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔════╝
--███████╗█████╗ ███████║ ██║ ███████╗
--╚════██║██╔══╝ ██╔══██║ ██║ ╚════██║
--███████║███████╗██║ ██║ ██║ ███████║
--╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
Config.Seats = {
--[[
YOU CAN ADD, REMOVE OR ADJUST AS YOU WANT FOR MORE SEATS
]]--
--[[ GALAXY NIGHTCLUB ]]--
--[[ Lower Benches ]]--
{ coords = vector4(355.04, 278.70, 91.19, 345.0), stand = vector3(355.70, 279.24, 91.19)},
{ coords = vector4(355.91, 278.45, 91.19, 345.0), stand = vector3(355.70, 279.24, 91.19)},
{ coords = vector4(356.73, 278.24, 91.19, 345.0), stand = vector3(357.56, 278.76, 91.19)},
{ coords = vector4(357.60, 278.04, 91.19, 345.0), stand = vector3(357.56, 278.76, 91.19)},
--[[ Upper Bar ]]--
{ coords = vector4(364.35, 285.06, 94.49, 345.0), stand = vector3(364.21, 284.51, 94.19)},
{ coords = vector4(363.59, 285.27, 94.49, 345.0), stand = vector3(363.49, 284.76, 94.19)},
{ coords = vector4(361.58, 285.59, 94.49, 345.0), stand = vector3(361.39, 285.01, 94.19)},
{ coords = vector4(360.16, 285.99, 94.49, 345.0), stand = vector3(360.00, 285.44, 94.19)},
{ coords = vector4(359.14, 285.20, 94.49, 125.0), stand = vector3(359.70, 285.55, 94.19)},
{ coords = vector4(360.34, 283.79, 94.49, 125.0), stand = vector3(360.69, 284.09, 94.19)},
{ coords = vector4(360.12, 282.02, 94.49, 75.0), stand = vector3(360.70, 281.88, 94.19)},
{ coords = vector4(359.13, 278.66, 94.49, 75.0), stand = vector3(359.66, 278.57, 94.19)},
{ coords = vector4(358.25, 276.93, 94.49, 25.0), stand = vector3(358.56, 276.39, 94.19)},
{ coords = vector4(357.06, 276.28, 94.49, 25.0), stand = vector3(357.30, 275.74, 94.19)},
{ coords = vector4(360.18, 272.51, 94.49, 165.0), stand = vector3(360.28, 273.03, 94.19)},
--[[ Upper Benches ]]--
{ coords = vector4(363.37, 269.06, 94.39, 265.0), stand = vector3(363.96, 268.52, 94.39)},
{ coords = vector4(363.05, 268.32, 94.39, 265.0), stand = vector3(363.96, 268.52, 94.39)},
{ coords = vector4(362.79, 267.36, 94.39, 265.0), stand = vector3(363.49, 266.88, 94.39)},
{ coords = vector4(362.53, 266.29, 94.39, 265.0), stand = vector3(363.49, 266.88, 94.39)},
{ coords = vector4(363.32, 265.32, 94.39, 345.0), stand = vector3(363.93, 265.81, 94.39)},
{ coords = vector4(364.17, 265.08, 94.39, 345.0), stand = vector3(363.93, 265.81, 94.39)},
{ coords = vector4(365.14, 264.81, 94.39, 345.0), stand = vector3(365.76, 265.31, 94.39)},
{ coords = vector4(366.07, 264.59, 94.39, 345.0), stand = vector3(365.76, 265.31, 94.39)},
{ coords = vector4(366.86, 264.34, 94.39, 345.0), stand = vector3(367.53, 264.82, 94.39)},
{ coords = vector4(367.71, 264.16, 94.39, 345.0), stand = vector3(367.53, 264.82, 94.39)},
{ coords = vector4(368.59, 263.93, 94.39, 345.0), stand = vector3(369.22, 264.35, 94.39)},
{ coords = vector4(369.29, 263.68, 94.39, 345.0), stand = vector3(369.22, 264.35, 94.39)},
{ coords = vector4(370.61, 264.38, 94.39, 75.0), stand = vector3(370.15, 264.92, 94.39)},
{ coords = vector4(370.82, 265.13, 94.39, 75.0), stand = vector3(370.15, 264.92, 94.39)},
{ coords = vector4(371.06, 265.98, 94.39, 75.0), stand = vector3(370.58, 266.59, 94.39)},
{ coords = vector4(371.23, 266.73, 94.39, 75.0), stand = vector3(370.58, 266.59, 94.39)},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment