Skip to main content

Installation

1. Add the resource​

Put the gs-airdrop folder in your resources folder. In server.cfg, start it after its dependencies and every resource you pick in the config (framework, inventory, target and notifications):

server.cfg
ensure ox_lib
ensure oxmysql
ensure qbx_core # or qb-core / es_extended
ensure ox_inventory
ensure ox_target
ensure gs-airdrop

The database tables are created automatically on the first start.

2. Pick your framework and resources​

Open config.lua and set the first section to match your server:

config.lua
Config.Framework = "auto" -- auto | qbox | qbcore | oldqb | esx | oldesx | standalone
Config.Inventory = "ox_inventory" -- ox_inventory | default | qb-inventory | qs-inventory | custom
Config.Target = "ox-target" -- ox-target | qb-target | custom | none
Config.Notification = "ox_lib" -- ox_lib | gs-notify

auto detects Qbox, QBCore or ESX, and falls back to standalone.

3. Add the items​

The script uses two items: airdrop_tablet and airdrop_flare.

ox_inventory: copy the entries from install/ox_inventory_items.txt into ox_inventory/data/items.lua, then restart ox_inventory. The item images are in install/images/; copy them to ox_inventory/web/images/.

ox_inventory/data/items.lua
['airdrop_tablet'] = {
label = 'Airdrop Tablet',
weight = 750,
stack = false,
close = true,
description = 'Encrypted airdrop schedule and informant terminal.',
client = { export = 'gs-airdrop.useAirdropTablet' },
},

['airdrop_flare'] = {
label = 'Airdrop Flare',
weight = 500,
stack = true,
close = true,
description = 'Single-use authorization flare for a supply drop.',
client = { export = 'gs-airdrop.useAirdropFlare' },
},

Also make sure every item used as loot in Config.DropTypes exists in your inventory. The script checks the ox_inventory loot items when it starts.

warning

Flare drops need ox_inventory. If you use another inventory, set Config.Flare.enabled = false.

4. Give admins access​

Admins from your framework's admin group already have access. On ESX this is set by Config.ESXAdminGroups. You can also give access with an ACE permission on any framework:

server.cfg
add_ace group.admin gravity.airdrop.admin allow

5. Restart and test​

Restart the server, then type /airdrop in-game to start a drop. /airdropadmin opens the control center.

info

If a dependency starts after gs-airdrop or is restarted, the script checks everything again and reinstalls its inventory hooks automatically. Changes to config.lua still need a restart.