Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Created August 20, 2023 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqade/63a30513f0a8260014b35fce7d98d22a to your computer and use it in GitHub Desktop.
Save aqade/63a30513f0a8260014b35fce7d98d22a to your computer and use it in GitHub Desktop.
apex_beachclub
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
-- ██╗ ██████╗ ██████╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
-- ██║██╔═══██╗██╔══██╗ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
-- ██║██║ ██║██████╔╝ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██ ██║██║ ██║██╔══██╗ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚█████╔╝╚██████╔╝██████╔╝ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Name = "Beach Club"
Config.Jobname = "beachclub"
Config.Blips = {
{
enabled = true,
point = vector3(-1518.71, -1496.09, 6.24),
sprite = 93,
scale = 0.6,
colour = 26,
title = Config.Name,
},
}
Config.Features = {
RemoveNPCsFromLocation = true, -- Disable random NPCs spawning inside the club
RemoveNPCsFromLocationSettings = {
{
coords = vector3(-1518.71, -1496.09, 6.24),
radius = 30.0,
},
},
Office = true,
OfficeSettings = {
Target = {
{
points = vector3(-1482.06, -1487.99, 2.22),
heading = 15.0,
minZ = 2.22-2.0,
maxZ = 2.22+2.4,
Size = {8.4, 3.6},
distance = 2.0,
},
},
},
Duty = true, -- This is a QBCore function, set it to false, if using ESX!
DutySettings = {
Target = {
{
points = vector3(-1480.15, -1471.19, 2.82),
heading = 15.0,
minZ = 2.82-0.4,
maxZ = 2.82+0.2,
Size = {0.75, 0.75},
distance = 2.5,
},
},
},
Wardrobe = true,
WardrobeSettings = {
Target = {
{
points = vector3(-1485.03, -1471.99, 2.97),
heading = 15.0,
minZ = 2.97-1,
maxZ = 2.97+2,
Size = {0.4, 2.2},
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 = 55.0,
Target = {
points = vector3(-1518.82, -1477.44, 6.84),
heading = 357.0,
minZ = 6.84-0.1,
maxZ = 6.84+0.2,
Size = {0.45, 1.9},
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(-1509.63, -1513.98, 6.31),
heading = 311.0,
minZ = 6.31,
maxZ = 6.31+0.7,
Size = {0.7, 0.2},
distance = 2.0,
},
{
points = vector3(-1505.3, -1511.55, 6.33),
heading = 290.0,
minZ = 6.33,
maxZ = 6.33+0.7,
Size = {0.7, 0.2},
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(-1507.82, -1512.97, 6.29),
Heading = 300.0,
Size = {4.6, 0.6},
Distance = 1.5,
minZ = 6.29-1,
maxZ = 6.29-0.05,
},
},
Ingredients = {
{
Coords = vector3(-1506.2, -1516.04, 6.29),
Heading = 30.0,
Size = {1.0, 6.4},
Distance = 1.5,
minZ = 6.29,
maxZ = 6.29+0.5,
},
},
Freezer = {
{
Coords = vector3(-1510.68, -1517.43, 6.29),
Heading = 0.0,
Size = {0.5, 0.5},
Distance = 1.5,
minZ = 6.29,
maxZ = 6.29+0.5,
},
},
CashRegisters = {
{
Coords = vector3(-1507.2, -1511.92, 6.31),
Heading = 25.0,
Size = {0.5, 0.35},
Distance = 1.5,
minZ = 6.31,
maxZ = 6.31+0.5,
},
{
Coords = vector3(-1511.21, -1514.96, 6.31),
Heading = 50.0,
Size = {0.5, 0.35},
Distance = 1.5,
minZ = 6.31,
maxZ = 6.31+0.5,
},
},
Tables = {
{ Coords = vector3(-1521.64, -1513.62, 6.24), Heading = 30.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1523.42, -1507.97, 6.24), Heading = 25.0, Size = {0.65, 0.65}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1524.57, -1507.13, 6.24), Heading = 10.0, Size = {0.65, 0.65}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1525.05, -1505.70, 6.24), Heading = 335.0, Size = {0.65, 0.65}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1530.95, -1502.05, 6.24), Heading = 335.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1531.74, -1500.87, 6.24), Heading = 5.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1532.40, -1492.33, 6.24), Heading = 20.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1537.27, -1484.20, 6.24), Heading = 20.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1528.94, -1485.27, 6.24), Heading = 315.0, Size = {0.65, 0.65}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1510.17, -1485.31, 6.24), Heading = 20.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1509.15, -1494.80, 6.24), Heading = 20.0, Size = {0.65, 0.65}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1504.98, -1501.79, 6.24), Heading = 20.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
{ Coords = vector3(-1512.40, -1505.95, 6.24), Heading = 20.0, Size = {1.0, 1.0}, Distance = 1.5, minZ = 6.24-1, maxZ = 6.24, },
},
Trays = {
{ Coords = vector3(-1509.24, -1513.17, 6.3), Heading = 305.0, Size = {0.8, 0.95}, Distance = 2.5, minZ = 6.3, maxZ = 6.3+0.27, },
{ Coords = vector3(-1506.31, -1511.55, 6.3), Heading = 291.0, Size = {0.8, 0.95}, Distance = 2.5, minZ = 6.3, maxZ = 6.3+0.27, },
},
}
--███████╗███████╗ █████╗ ████████╗███████╗
--██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔════╝
--███████╗█████╗ ███████║ ██║ ███████╗
--╚════██║██╔══╝ ██╔══██║ ██║ ╚════██║
--███████║███████╗██║ ██║ ██║ ███████║
--╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
Config.Seats = {
--[[
YOU CAN ADD, REMOVE OR ADJUST AS YOU WANT FOR MORE SEATS
]]--
--[[ BEACH CLUB ]]--
{ coords = vector4(-1520.59, -1511.92, 6.24, 150.0), stand = vector3(-1520.74, -1512.42, 6.24)},
{ coords = vector4(-1519.66, -1513.66, 6.24, 90.0), stand = vector3(-1520.21, -1513.60, 6.24)},
{ coords = vector4(-1520.63, -1515.16, 6.24, 30.0), stand = vector3(-1521.27, -1514.78, 6.24)},
{ coords = vector4(-1521.28, -1515.53, 6.24, 30.0), stand = vector3(-1521.27, -1514.78, 6.24)},
{ coords = vector4(-1523.13, -1514.61, 6.24, 290.0), stand = vector3(-1522.59, -1514.31, 6.24)},
{ coords = vector4(-1523.01, -1512.42, 6.24, 210.0), stand = vector3(-1522.40, -1512.89, 6.24)},
{ coords = vector4(-1522.42, -1512.08, 6.24, 210.0), stand = vector3(-1522.40, -1512.89, 6.24)},
{ coords = vector4(-1523.76, -1509.45, 6.24, 335.0), stand = vector3(-1523.77, -1508.75, 6.24)},
{ coords = vector4(-1524.29, -1509.20, 6.24, 335.0), stand = vector3(-1523.77, -1508.75, 6.24)},
{ coords = vector4(-1525.46, -1508.31, 6.24, 310.0), stand = vector3(-1525.18, -1507.65, 6.24)},
{ coords = vector4(-1525.85, -1507.84, 6.24, 310.0), stand = vector3(-1525.18, -1507.65, 6.24)},
{ coords = vector4(-1526.34, -1506.30, 6.24, 280.0), stand = vector3(-1525.89, -1505.79, 6.24)},
{ coords = vector4(-1526.47, -1505.59, 6.24, 280.0), stand = vector3(-1525.89, -1505.79, 6.24)},
{ coords = vector4(-1530.23, -1504.00, 6.24, 350.0), stand = vector3(-1530.08, -1503.40, 6.24)},
{ coords = vector4(-1531.69, -1503.57, 6.24, 335.0), stand = vector3(-1531.35, -1502.95, 6.24)},
{ coords = vector4(-1532.85, -1502.72, 6.24, 300.0), stand = vector3(-1532.35, -1502.34, 6.24)},
{ coords = vector4(-1533.33, -1501.38, 6.24, 275.0), stand = vector3(-1532.74, -1501.28, 6.24)},
{ coords = vector4(-1533.20, -1499.92, 6.24, 255.0), stand = vector3(-1532.58, -1500.04, 6.24)},
{ coords = vector4(-1531.26, -1494.20, 6.24, 25.0), stand = vector3(-1531.82, -1493.81, 6.24)},
{ coords = vector4(-1531.82, -1494.46, 6.24, 25.0), stand = vector3(-1531.82, -1493.81, 6.24)},
{ coords = vector4(-1533.83, -1493.95, 6.24, 300.0), stand = vector3(-1533.36, -1493.60, 6.24)},
{ coords = vector4(-1534.49, -1492.28, 6.24, 270.0), stand = vector3(-1533.87, -1492.30, 6.24)},
{ coords = vector4(-1533.78, -1490.73, 6.24, 205.0), stand = vector3(-1533.26, -1491.18, 6.24)},
{ coords = vector4(-1533.20, -1490.47, 6.24, 205.0), stand = vector3(-1533.26, -1491.18, 6.24)},
{ coords = vector4(-1531.75, -1490.53, 6.24, 165.0), stand = vector3(-1531.88, -1491.14, 6.24)},
{ coords = vector4(-1530.36, -1492.32, 6.24, 90.0), stand = vector3(-1530.89, -1492.38, 6.24)},
{ coords = vector4(-1536.37, -1486.06, 6.24, 20.0), stand = vector3(-1536.98, -1485.70, 6.24)},
{ coords = vector4(-1537.00, -1486.28, 6.24, 20.0), stand = vector3(-1536.98, -1485.70, 6.24)},
{ coords = vector4(-1538.73, -1485.37, 6.24, 300.0), stand = vector3(-1538.34, -1484.75, 6.24)},
{ coords = vector4(-1539.05, -1484.81, 6.24, 300.0), stand = vector3(-1538.34, -1484.75, 6.24)},
{ coords = vector4(-1539.12, -1482.94, 6.24, 225.0), stand = vector3(-1538.29, -1483.18, 6.24)},
{ coords = vector4(-1538.62, -1482.44, 6.24, 225.0), stand = vector3(-1538.29, -1483.18, 6.24)},
{ coords = vector4(-1536.91, -1482.22, 6.24, 160.0), stand = vector3(-1536.90, -1482.89, 6.24)},
{ coords = vector4(-1536.32, -1482.43, 6.24, 160.0), stand = vector3(-1536.90, -1482.89, 6.24)},
{ coords = vector4(-1535.31, -1483.82, 6.24, 95.0), stand = vector3(-1535.87, -1484.21, 6.24)},
{ coords = vector4(-1535.25, -1484.44, 6.24, 95.0), stand = vector3(-1535.87, -1484.21, 6.24)},
{ coords = vector4(-1529.89, -1486.36, 6.24, 315.0), stand = vector3(-1529.46, -1485.94, 6.24)},
{ coords = vector4(-1528.06, -1484.23, 6.24, 145.0), stand = vector3(-1528.22, -1484.74, 6.24)},
{ coords = vector4(-1511.64, -1486.26, 6.24, 300.0), stand = vector3(-1511.20, -1485.90, 6.24)},
{ coords = vector4(-1511.73, -1483.92, 6.24, 225.0), stand = vector3(-1511.13, -1484.20, 6.24)},
{ coords = vector4(-1511.29, -1483.47, 6.24, 225.0), stand = vector3(-1511.13, -1484.20, 6.24)},
{ coords = vector4(-1509.43, -1483.55, 6.24, 170.0), stand = vector3(-1509.55, -1484.14, 6.24)},
{ coords = vector4(-1508.14, -1485.38, 6.24, 92.0), stand = vector3(-1508.76, -1485.37, 6.24)},
{ coords = vector4(-1509.06, -1486.92, 6.24, 20.0), stand = vector3(-1509.69, -1486.48, 6.24)},
{ coords = vector4(-1509.71, -1487.16, 6.24, 20.0), stand = vector3(-1509.69, -1486.48, 6.24)},
{ coords = vector4(-1509.14, -1493.16, 6.24, 170.0), stand = vector3(-1509.26, -1493.78, 6.24)},
{ coords = vector4(-1507.93, -1494.30, 6.24, 110.0), stand = vector3(-1508.49, -1494.56, 6.24)},
{ coords = vector4(-1507.94, -1496.23, 6.24, 60.0), stand = vector3(-1508.46, -1495.90, 6.24)},
{ coords = vector4(-1506.56, -1500.39, 6.24, 225.0), stand = vector3(-1505.91, -1500.63, 6.24)},
{ coords = vector4(-1506.07, -1499.90, 6.24, 225.0), stand = vector3(-1505.91, -1500.63, 6.24)},
{ coords = vector4(-1504.26, -1500.01, 6.24, 170.0), stand = vector3(-1504.38, -1500.61, 6.24)},
{ coords = vector4(-1502.95, -1501.89, 6.24, 95.0), stand = vector3(-1503.52, -1501.87, 6.24)},
{ coords = vector4(-1503.97, -1503.38, 6.24, 20.0), stand = vector3(-1504.45, -1502.91, 6.24)},
{ coords = vector4(-1504.53, -1503.63, 6.24, 20.0), stand = vector3(-1504.45, -1502.91, 6.24)},
{ coords = vector4(-1506.51, -1502.66, 6.24, 300.0), stand = vector3(-1505.98, -1502.37, 6.24)},
{ coords = vector4(-1511.69, -1504.17, 6.24, 170.0), stand = vector3(-1511.75, -1504.73, 6.24)},
{ coords = vector4(-1510.47, -1505.81, 6.24, 95.0), stand = vector3(-1511.03, -1505.80, 6.24)},
{ coords = vector4(-1511.37, -1507.59, 6.24, 20.0), stand = vector3(-1511.89, -1507.11, 6.24)},
{ coords = vector4(-1512.00, -1507.82, 6.24, 20.0), stand = vector3(-1511.89, -1507.11, 6.24)},
{ coords = vector4(-1513.51, -1507.79, 6.24, 335.0), stand = vector3(-1513.57, -1507.05, 6.24)},
{ coords = vector4(-1514.12, -1507.50, 6.24, 335.0), stand = vector3(-1513.57, -1507.05, 6.24)},
{ coords = vector4(-1514.55, -1505.85, 6.24, 275.0), stand = vector3(-1513.90, -1505.78, 6.24)},
{ coords = vector4(-1513.85, -1504.39, 6.24, 220.0), stand = vector3(-1513.16, -1504.64, 6.24)},
{ coords = vector4(-1513.31, -1503.98, 6.24, 220.0), stand = vector3(-1513.16, -1504.64, 6.24)},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment