Skip to content

Instantly share code, notes, and snippets.

@aqade

aqade/config.lua Secret

Last active August 20, 2023 12:57
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/4adb6c13e58b3599ad67e9f27c934fa5 to your computer and use it in GitHub Desktop.
Save aqade/4adb6c13e58b3599ad67e9f27c934fa5 to your computer and use it in GitHub Desktop.
apex_cocainerun
-- █████╗ ██████╗ ███████╗██╗ ██╗ ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ ███████╗
--██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗██╔════╝
--███████║██████╔╝█████╗ ╚███╔╝ ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║███████╗
--██╔══██║██╔═══╝ ██╔══╝ ██╔██╗ ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║╚════██║
--██║ ██║██║ ███████╗██╔╝ ██╗ ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝███████║
--╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝
----------------------------------------------------------------------------------------------------
-- ██████╗ ███████╗███╗ ██╗███████╗██████╗ █████╗ ██╗ ███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝ ██╔════╝████╗ ██║██╔════╝██╔══██╗██╔══██╗██║ ██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--██║ ███╗█████╗ ██╔██╗ ██║█████╗ ██████╔╝███████║██║ ███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--██║ ██║██╔══╝ ██║╚██╗██║██╔══╝ ██╔══██╗██╔══██║██║ ╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--╚██████╔╝███████╗██║ ╚████║███████╗██║ ██║██║ ██║███████╗ ███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
-- ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config = {}
Config.Debug = false
--███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗
--██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗ ██║██╔════╝ ██╔════╝
--███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗
--╚════██║██╔══╝ ██║ ██║ ██║██║╚██╗██║██║ ██║╚════██║
--███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔╝███████║
--╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Config.Features = {
Requirements = {
PoliceRequired = false,
PoliceAmount = 0,
PoliceJobs = {'police'}, -- Add more like this: {'police', 'sheriff'}
Mask = true,
},
Availability = {
Enabled = true, -- If set to false, run will also be availeblity
From = 20, -- In game time -- 20 = 8pm
To = 8, -- In game time -- 8 = 8am
},
PedSettings = {
Model = 's_m_m_lifeinvad_01',
Scenario = 'WORLD_HUMAN_CLIPBOARD',
Target = {
points = vector3(1700.99, 4857.78, 42.03),
heading = 252.76,
minZ = 42.03-1.0,
maxZ = 42.03+0.8,
size = {0.8, 0.8},
distance = 2.0,
},
Blip = {enabled = true, sprite = 514, color = 0, size = 0.8, name = "Cocaine Run"},
Cost = {
Price = 0, -- Set this to 0 if you want it to be free
Account = 'cash',
--[[
- qbcore: cash or bank
- esx: money or bank
]]--
},
},
Pickup = {
Blip = {sprite = 478, color = 0},
RecipeAndIngredients = {
Scenery = {
Props = {
PlaneProp = false,
PlanePropSettings = {
model = 'apa_mp_apa_crashed_usaf_01a',
coords = vector3(-919.20, 6138.12, 5.69),
heading = 190.42,
},
CrateProp = true,
CratePropSettings = {
model = 'sm_prop_smug_crate_s_narc',
coords = vector3(-917.76, 6656.14, -35.72),
heading = 10.0,
placeonground = true,
},
},
Target = {-- This target needs to be the same as the CrateProp above or the target will not fit the box, unless you are using something else.
points = vector3(-917.76, 6656.14, -35.72),
heading = 10.0,
minZ = -35.72462-1.0,
maxZ = -35.72462+0.6,
size = {1.0, 1.0},
distance = 3.0,
},
},
PickupItems = {
RecipeItem = 'recipe_cocaine',
RecipeAmount = 1,
Ingredients1 = 'benzocaine',
Ingredients1Amount = 10,
Ingredients2 = 'cement_powder',
Ingredients2Amount = 5,
},
},
Tools = {
Scenery = {
PropsEnabled = true,
Props = {
CrateProp = true,
CratePropSettings = {
model = 'sm_prop_smug_crate_s_antiques',
coords = vector3(1100.63, -2225.57, 31.3),
heading = 270.0,
},
},
Target = {
points = vector3(1100.63, -2225.57, 31.3),
heading = 270.0,
minZ = 31.3-1.0,
maxZ = 31.3,
size = {1.0, 1.2},
distance = 3.0,
},
},
ToolItems = {
Tool1 = 'drugscale',
Tool1Amount = 1,
Tool2 = 'drugkit',
Tool2Amount = 1,
Tool3 = 'zipbags',
Tool3Amount = 10, -- This should be the same amount as the breakdown amount
},
RemoveOnUse = true,
},
},
MakeBrick = {
Duration = 240, -- In seconds
Item = 'cocaine',
Amount = 1,
Target = {
{
points = vector3(-332.9, -2447.31, 7.36),
heading = 320.0,
minZ = 7.36-0.5,
maxZ = 7.36+0.2,
size = {2.55, 1.2},
distance = 2.0,
},
{
points = vector3(-331.25, -2445.34, 7.36),
heading = 320.0,
minZ = 7.36-0.5,
maxZ = 7.36+0.2,
size = {2.55, 1.2},
distance = 2.0,
},
{
points = vector3(-329.61, -2443.38, 7.36),
heading = 320.0,
minZ = 7.36-0.5,
maxZ = 7.36+0.2,
size = {2.55, 1.2},
distance = 2.0,
},
}
},
Breakdown = {
Duration = 480, -- In seconds
Item = 'cocaine_baggy',
Amount = 10,
Target = {
{
points = vector3(-328.7, -2439.91, 7.36),
heading = 50.0,
minZ = 7.36-0.5,
maxZ = 7.36+0.2,
size = {2.55, 1.2},
distance = 2.0,
},
{
points = vector3(-327.77, -2436.68, 7.36),
heading = 320.0,
minZ = 7.36-0.5,
maxZ = 7.36+0.2,
size = {2.55, 1.2},
distance = 2.0,
},
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment