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
| Setting | Default | What it does |
|---|---|---|
Config.DebugLogs | false | Prints detailed logs to the console |
Config.RoutingBucket | 0 | Drops and rewards only exist in this routing bucket |
Config.RepeatLootItems | false | false: each loot entry is picked at most once per crate |
Config.ESXAdminGroups | admin, superadmin | ESX groups allowed to use the admin commands |
Timing
| Setting | Default | What it does |
|---|---|---|
Config.airDropCooldown | 2700 | Seconds between standard, automatic and flare drops. Admin events ignore it |
Config.unlockCooldown | 3 | Minutes before a landed crate can be opened |
Config.unlootedCleanupTime | 10 | Minutes an unlocked crate stays before it's removed |
Config.DeliveryTimeout | 300 | Seconds before a drop that never lands is removed. Must allow for the flight and the descent |
Config.FlightDuration | 45000 | Milliseconds the plane takes to arrive |
Config.LandingVerticalTolerance | 75.0 | Metres a crate may land away from the configured height |
Automatic drops
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.planeSpawnCoordsandConfig.planeReturnCoordsset where the plane appears and where it flies away to.Config.planeBlipsandConfig.crateBlipsset the map blips.Config.Zonedraws a red circle on the map. Withmoving = trueit follows the plane until the crate lands.Config.Visualsturns the landing camera shake and dust cloud on or off.
Guards
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.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.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.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 = falselimits custom-drop prizes to items already used by a tier. Set it totrueto allow any item.maxCustomMoneyis 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:
["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 },
},
},
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.
valueis only used for the analytics.metadatasupportsquality,durabilityandammo(a fixed number or{ min, max }),serial = true,labelPrefix,descriptions,variants,components,image,weight,gradeandexpiresIn. 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.