Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Created August 5, 2023 07:13
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/ec41386562ab1c1a67cfdef52dce5a1a to your computer and use it in GitHub Desktop.
Save aqade/ec41386562ab1c1a67cfdef52dce5a1a to your computer and use it in GitHub Desktop.
apex_blackwood
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
-- ██╗ ██████╗ ██████╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
-- ██║██╔═══██╗██╔══██╗ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
-- ██║██║ ██║██████╔╝ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██ ██║██║ ██║██╔══██╗ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚█████╔╝╚██████╔╝██████╔╝ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Name = "Blackwood Saloon"
Config.Jobname = "blackwood"
Config.Blips = {
{
enabled = true,
point = vector3(-304.69, 6265.1, 31.53),
sprite = 93,
scale = 0.6,
colour = 54,
title = Config.Name,
},
}
Config.Features = {
RemoveNPCsFromLocation = true, -- Disable random NPCs spawning inside the club
RemoveNPCsFromLocationSettings = {
{
coords = vector3(-304.69, 6265.1, 31.53),
radius = 20.0,
},
},
Office = true,
OfficeSettings = {
Target = {
{
points = vector3(-306.96, 6268.88, 34.89),
heading = 313.0,
minZ = 34.89-1,
maxZ = 34.89+1.5,
Size = {3.2, 0.8},
distance = 2.0,
},
},
},
Duty = true, -- This is a QBCore function, set it to false, if using ESX!
DutySettings = {
Target = {
{
points = vector3(-294.96, 6265.79, 31.54),
heading = 313.0,
minZ = 31.54+0.1,
maxZ = 31.54+1.4,
Size = {0.2, 1.6},
distance = 2.5,
},
},
},
Wardrobe = true,
WardrobeSettings = {
Target = {
{
points = vector3(-296.29, 6268.01, 31.53),
heading = 313.0,
minZ = 31.53-1,
maxZ = 31.53+1.6,
Size = {0.6, 1.6},
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(-303.26, 6255.45, 31.76),
heading = 316.0,
minZ = 31.76-1,
maxZ = 31.76+0.1,
Size = {0.7, 0.7},
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(-303.23, 6268.92, 31.53),
heading = 313.0,
minZ = 31.53+0.1,
maxZ = 31.53+0.8,
Size = {0.8, 0.4},
distance = 3.0,
},
{
points = vector3(-305.05, 6267.21, 31.53),
heading = 313.0,
minZ = 31.53+0.1,
maxZ = 31.53+0.8,
Size = {0.8, 0.4},
distance = 3.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(-305.63, 6269.44, 31.53),
Heading = 313.0,
Size = {2.2, 0.2},
Distance = 1.5,
minZ = 31.53-1.2,
maxZ = 31.53,
},
},
Ingredients = {
{
Coords = vector3(-305.56, 6270.44, 31.53),
Heading = 313.0,
Size = {3.6, 0.4},
Distance = 1.5,
minZ = 31.53,
maxZ = 31.53+1,
},
},
Freezer = {
{
Coords = vector3(-301.75, 6271.33, 31.53),
Heading = 313.0,
Size = {0.8, 0.3},
Distance = 1.5,
minZ = 31.53-1,
maxZ = 31.53+0.05,
},
},
CashRegisters = {
{
Coords = vector3(-302.71, 6272.46, 31.53),
Heading = 296.0,
Size = {0.55, 0.35},
Distance = 1.5,
minZ = 31.53,
maxZ = 31.53+0.5,
},
{
Coords = vector3(-307.66, 6268.44, 31.53),
Heading = 317.0,
Size = {0.55, 0.35},
Distance = 1.5,
minZ = 31.53,
maxZ = 31.53+0.5,
},
},
Tables = {
{ Coords = vector3(-298.72, 6266.12, 31.53), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 31.53-1, maxZ = 31.53+0.2, },
{ Coords = vector3(-296.34, 6263.72, 31.53), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 31.53-1, maxZ = 31.53+0.2, },
{ Coords = vector3(-299.46, 6260.77, 31.53), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 31.53-1, maxZ = 31.53+0.2, },
{ Coords = vector3(-301.86, 6263.27, 31.53), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 31.53-1, maxZ = 31.53+0.2, },
{ Coords = vector3(-302.60, 6267.84, 34.89), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 34.89-1, maxZ = 34.89+0.2, },
{ Coords = vector3(-303.92, 6270.65, 34.89), Heading = 0.0, Size = {0.8, 0.8}, Distance = 1.5, minZ = 34.89-1, maxZ = 34.89+0.2, },
},
Trays = {
{ Coords = vector3(-304.08, 6268.03, 31.53), Heading = 313.0, Size = {1.6, 0.5}, Distance = 2.5, minZ = 31.53+0.07, maxZ = 31.53+0.27, },
{ Coords = vector3(-302.23, 6269.74, 31.53), Heading = 313.0, Size = {1.6, 0.5}, Distance = 2.5, minZ = 31.53+0.07, maxZ = 31.53+0.27, },
},
}
--███████╗███████╗ █████╗ ████████╗███████╗
--██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔════╝
--███████╗█████╗ ███████║ ██║ ███████╗
--╚════██║██╔══╝ ██╔══██║ ██║ ╚════██║
--███████║███████╗██║ ██║ ██║ ███████║
--╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
Config.Seats = {
--[[
YOU CAN ADD, REMOVE OR ADJUST AS YOU WANT FOR MORE SEATS
]]--
--[[ BLACKWOOD SALOON ]]--
--[[ Bar ]]--
{ coords = vector4(-307.00, 6265.55, 31.83, 311.0), stand = vector3(-307.30, 6265.22, 31.53)},
{ coords = vector4(-305.96, 6265.35, 31.83, 34.0), stand = vector3(-305.50, 6264.85, 31.53)},
{ coords = vector4(-304.47, 6266.00, 31.83, 29.0), stand = vector3(-304.20, 6265.61, 31.53)},
{ coords = vector4(-303.58, 6267.57, 31.83, 40.0), stand = vector3(-303.09, 6267.13, 31.53)},
{ coords = vector4(-303.05, 6268.02, 31.83, 40.0), stand = vector3(-302.62, 6267.58, 31.53)},
{ coords = vector4(-302.16, 6268.31, 31.83, 62.0), stand = vector3(-301.71, 6267.99, 31.53)},
{ coords = vector4(-301.88, 6269.10, 31.83, 35.0), stand = vector3(-301.48, 6268.59, 31.53)},
{ coords = vector4(-301.24, 6269.75, 31.83, 45.0), stand = vector3(-300.89, 6269.37, 31.53)},
{ coords = vector4(-300.70, 6270.27, 31.83, 45.0), stand = vector3(-300.32, 6269.95, 31.53)},
--[[ Main Floor ]]--
{ coords = vector4(-299.26, 6266.67, 31.83, 225.0), stand = vector3(-299.58, 6267.02, 31.53)},
{ coords = vector4(-298.09, 6266.53, 31.83, 125.0), stand = vector3(-297.73, 6266.82, 31.53)},
{ coords = vector4(-298.14, 6265.57, 31.83, 36.0), stand = vector3(-297.82, 6265.20, 31.53)},
{ coords = vector4(-299.24, 6265.53, 31.83, 326.0), stand = vector3(-299.51, 6265.13, 31.53)},
{ coords = vector4(-296.94, 6264.36, 31.83, 225.0), stand = vector3(-297.23, 6264.57, 31.53)},
{ coords = vector4(-295.77, 6264.24, 31.83, 139.0), stand = vector3(-295.52, 6264.55, 31.53)},
{ coords = vector4(-295.67, 6263.05, 31.83, 36.0), stand = vector3(-295.36, 6262.69, 31.53)},
{ coords = vector4(-296.95, 6263.05, 31.83, 334.0), stand = vector3(-297.17, 6262.62, 31.53)},
{ coords = vector4(-299.61, 6261.60, 31.83, 182.0), stand = vector3(-299.66, 6262.06, 31.53)},
{ coords = vector4(-298.63, 6260.83, 31.83, 87.0), stand = vector3(-298.17, 6260.81, 31.53)},
{ coords = vector4(-299.54, 6259.99, 31.83, 5.0), stand = vector3(-299.49, 6259.49, 31.53)},
{ coords = vector4(-300.38, 6260.68, 31.83, 257.0), stand = vector3(-300.85, 6260.79, 31.53)},
{ coords = vector4(-301.68, 6264.01, 31.83, 153.0), stand = vector3(-301.55, 6264.44, 31.53)},
{ coords = vector4(-300.92, 6263.31, 31.83, 93.0), stand = vector3(-300.45, 6263.30, 31.53)},
{ coords = vector4(-301.80, 6262.35, 31.83, 12.0), stand = vector3(-301.74, 6261.88, 31.53)},
{ coords = vector4(-302.64, 6263.27, 31.83, 264.0), stand = vector3(-303.17, 6263.35, 31.53)},
{ coords = vector4(-310.93, 6261.95, 31.53, 272.23),stand = vector3(-310.40, 6262.04, 31.53)},
--[[ Upper Floor ]]--
{ coords = vector4(-303.26, 6270.10, 35.19, 35.0), stand = vector3(-303.08, 6269.68, 34.89)},
{ coords = vector4(-304.58, 6269.92, 35.19, 340.0), stand = vector3(-304.72, 6269.46, 34.89)},
{ coords = vector4(-304.46, 6271.28, 35.19, 226.0), stand = vector3(-304.89, 6270.91, 34.89)},
{ coords = vector4(-303.21, 6271.32, 35.19, 130.0), stand = vector3(-302.80, 6271.55, 34.89)},
{ coords = vector4(-300.91, 6267.60, 34.89, 252.04),stand = vector3(-301.53, 6267.76, 34.89)},
{ coords = vector4(-299.99, 6268.18, 34.89, 178.29),stand = vector3(-299.88, 6268.85, 34.89)},
{ coords = vector4(-299.04, 6267.47, 34.89, 124.02),stand = vector3(-298.50, 6267.89, 34.89)},
{ coords = vector4(-298.93, 6266.26, 34.89, 55.68), stand = vector3(-298.30, 6265.99, 34.89)},
{ coords = vector4(-299.85, 6265.59, 34.89, 21.85), stand = vector3(-299.69, 6264.91, 34.89)},
{ coords = vector4(-301.24, 6266.24, 34.89, 284.71),stand = vector3(-301.93, 6266.06, 34.89)},
{ coords = vector4(-298.25, 6264.67, 34.89, 252.04),stand = vector3(-298.86, 6264.82, 34.899)},
{ coords = vector4(-297.28, 6265.17, 34.89, 178.29),stand = vector3(-297.29, 6265.88, 34.899)},
{ coords = vector4(-296.36, 6264.66, 34.89, 124.02),stand = vector3(-295.63, 6264.81, 34.899)},
{ coords = vector4(-296.00, 6263.47, 34.89, 55.68), stand = vector3(-295.32, 6263.51, 34.899)},
{ coords = vector4(-297.18, 6262.76, 34.89, 21.85), stand = vector3(-296.98, 6262.07, 34.899)},
{ coords = vector4(-298.48, 6263.39, 34.89, 326.99),stand = vector3(-298.87, 6262.82, 34.899)},
{ coords = vector4(-301.29, 6261.16, 34.89, 252.04),stand = vector3(-301.86, 6261.40, 34.89)},
{ coords = vector4(-300.04, 6261.82, 34.89, 178.29),stand = vector3(-300.04, 6262.54, 34.89)},
{ coords = vector4(-298.91, 6261.29, 34.89, 124.02),stand = vector3(-298.36, 6261.74, 34.89)},
{ coords = vector4(-298.91, 6259.92, 34.89, 55.68), stand = vector3(-298.35, 6259.47, 34.89)},
{ coords = vector4(-300.09, 6259.03, 34.89, 21.85), stand = vector3(-299.78, 6258.41, 34.89)},
{ coords = vector4(-301.41, 6259.91, 34.89, 286.29),stand = vector3(-302.08, 6259.72, 34.89)},
{ coords = vector4(-304.34, 6264.18, 34.89, 252.04),stand = vector3(-304.91, 6264.39, 34.89)},
{ coords = vector4(-303.31, 6264.81, 34.89, 185.92),stand = vector3(-303.38, 6265.52, 34.89)},
{ coords = vector4(-302.07, 6264.09, 34.89, 97.24), stand = vector3(-301.35, 6264.07, 34.89)},
{ coords = vector4(-302.34, 6263.00, 34.89, 55.68), stand = vector3(-301.77, 6262.57, 34.89)},
{ coords = vector4(-303.31, 6262.39, 34.89, 21.85), stand = vector3(-302.96, 6261.75, 34.89)},
{ coords = vector4(-304.44, 6263.14, 34.89, 286.29),stand = vector3(-305.13, 6262.86, 34.89)},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment