Skip to main content

Configuration

Everything is in config.lua. It's the only file you need to edit; the other files are protected. Each setting has a comment saying its unit (seconds, minutes or milliseconds).

General​

SettingDefaultWhat it does
Config.DebugLogsfalsePrints detailed logs to the console
Config.RoutingBucket0Drops and rewards only exist in this routing bucket
Config.RepeatLootItemsfalsefalse: each loot entry is picked at most once per crate
Config.ESXAdminGroupsadmin, superadminESX groups allowed to use the admin commands

Timing​

SettingDefaultWhat it does
Config.airDropCooldown2700Seconds between standard, automatic and flare drops. Admin events ignore it
Config.unlockCooldown3Minutes before a landed crate can be opened
Config.unlootedCleanupTime10Minutes an unlocked crate stays before it's removed
Config.DeliveryTimeout300Seconds before a drop that never lands is removed. Must allow for the flight and the descent
Config.FlightDuration45000Milliseconds the plane takes to arrive
Config.LandingVerticalTolerance75.0Metres a crate may land away from the configured height

Automatic drops​

config.lua
Config.AutoDrop = {
enabled = true,
interval = 45, -- minutes between scheduled drops
minPlayers = 5, -- players online required for a scheduled drop
randomizeInterval = false, -- add a random +/- 2 minutes to the interval
}

Config.requiredPlayers = 1 -- players online required for ANY drop
Config.dropCount = 1 -- drops per wave
Config.streakChance = 10 -- percent chance of a multi-drop wave
Config.streakCount = 2 -- drops in a multi-drop wave

If a scheduled drop is due while a cooldown or another drop is active, it tries again every 15 seconds for up to 30 minutes instead of being skipped.

Plane, crate, blips and zone​

  • Config.planeSpawnCoords and Config.planeReturnCoords set where the plane appears and where it flies away to.
  • Config.planeBlips and Config.crateBlips set the map blips.
  • Config.Zone draws a red circle on the map. With moving = true it follows the plane until the crate lands.
  • Config.Visuals turns the landing camera shake and dust cloud on or off.

Guards​

config.lua
Config.Guards = {
enabled = true,
model = "s_m_m_prisguard_01",
weapon = "WEAPON_CARBINERIFLE",
count = { min = 1, max = 4 }, -- random number of guards per crate
accuracy = 100,
armor = 100,
health = 200,
}

Opening the crate​

config.lua
Config.Minigame = {
enabled = true,
difficulty = { "easy", "medium", "medium" }, -- one entry per skill-check round
inputs = { "w", "a", "s", "d" },
serverMinimumDuration = 5000, -- ms an attempt must take (5 to 40 seconds)

maxFails = 3, -- failed attempts before that player is locked out
failLockoutSeconds = 60,
selfDestructOnMaxFails = false, -- true: enough failures destroy the crate for everyone
selfDestructTime = 10,
}

Gang loot splitting​

When at least minMembers of a gang stand within radius metres of the crate, cash and the items in stackableItems are split between them.

config.lua
Config.GangSplit = {
enabled = true,
minMembers = 2,
radius = 15.0,
stackableItems = { "burger", "water", "bandage", "black_money" },
}

On ESX, list the jobs that count as gangs with Config.ESXGangJobs = { your_gang_job = true }. Normal jobs don't split rewards.

Tablet and flare​

config.lua
Config.Tablet = {
enabled = true,
item = "airdrop_tablet",
bribePrice = 5000, -- cash price of the informant
bribeDuration = 60000, -- ms the revealed locations stay highlighted
}

Config.Flare = {
enabled = true, -- needs ox_inventory
item = "airdrop_flare",
}

Admin panel​

Config.Advanced controls the control center: whether events can be saved, analytics and how long they're kept, streamer mode, and limits for saved events, locations and prize presets.

  • allowAnyInventoryPrize = false limits custom-drop prizes to items already used by a tier. Set it to true to allow any item.
  • maxCustomMoney is the most cash an admin can put in a custom drop.

Database​

Config.Database.historyRetentionDays (default 30) is how long the loot history is kept. 0 keeps it forever. Old entries are cleaned at startup and every hour.

Drop tiers and loot​

Each tier in Config.DropTypes has its own label, plane, blip, smoke colour, cash range and items:

config.lua
["rare"] = {
label = "Rare Airdrop",
chance = 30,
planeModel = "titan",
smoke = { r = 150, g = 0, b = 255 },
lootCount = { min = 1, max = 2 }, -- how many different items
money = { min = 20000, max = 50000 },
items = {
{
name = "WEAPON_PISTOL", chance = 40, count = 1, value = 12000,
metadata = {
quality = { min = 65, max = 100 },
durability = { min = 60, max = 100 },
ammo = { min = 12, max = 48 },
serial = true,
},
},
{ name = "armour", chance = 50, count = 1, value = 10000 },
},
},
info

chance is a relative weight, not a percentage. With chances of 60, 30 and 10, the first tier is picked 6 times as often as the last.

  • value is only used for the analytics.
  • metadata supports quality, durability and ammo (a fixed number or { min, max }), serial = true, labelPrefix, descriptions, variants, components, image, weight, grade and expiresIn. It's generated on the server for every item.

Drop locations​

Config.dropCoords lists where automatic and random drops can land. Admins can add more from the control center.

Text and translations​

Every message players and admins see is in Config.Locales. Keep the %s and %d placeholders where they are.