← All docsVehicles & racing
Swarm Drag
Synchronised two-lane drag racing with a working Christmas tree, burnout minigame, timing slips, video walls, saved records and a 2 to 16 driver tournament system, on a bundled Sandy Shores dragstrip.
standaloneQboxQBCoreESXResource: Swarm_Drag
New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.
Requirements
Frameworks: standalone, Qbox, QBCore, ESX.
| Requirement | What it's for | Included |
|---|---|---|
| OneSync | Required by the resource. | No |
| Dragstrip map | Streamed from the resource's own stream/ folder. Included. | Yes |
swarm_bridge | Required for the licensed edition. In the source edition it only sets the language. | Yes |
Install
- Copy the folders
Swarm_Drag,swarm_bridgeinto your server'sresourcesfolder. Already haveswarm_bridgefrom another Swarm script? Keep just one copy, the newest. - Add them to
server.cfg, dependencies first:ensure swarm_bridge ensure Swarm_Drag - Database: No database. Records are saved to
records.jsonin the resource folder. - Licensed edition only: put your ServerSecret in
swarm_bridge/licence/private_config.lua. One secret unlocks every Swarm script you own. How to get it. The Source Code edition has no licence check, so skip this. - Start the server and check the console for errors.
Configuration
Open config.lua and check these before going live. Anything marked as a placeholder should be moved to a spot that suits your map.
| Setting | What it does |
|---|---|
Config.Integration.speedLimiter.enabled | After each pass the car's top speed is reset to restoreMaxSpeed. Set false if you don't run a speed limiter. |
Config.Integration.speedLimiter.restoreMaxSpeed | The top speed restored after a pass (150, in mph unless restoreUsesKmh = true). |
Config.Tournament.economy.framework | 'auto' detects Qbox, QBCore or ESX, otherwise standalone. |
Config.Tournament.economy.account | Account for buy-ins and payouts ('bank' by default). |
Config.Tournament.economy.allowStandaloneBuyIn | In standalone mode, lets players join tournaments without being charged. |
Config.Tournament.payouts | Prize pool split (50 / 30 / 20 by default). |
Config.Admin.acePermission / Config.Tournament.acePermission | Admin ACE, 'swarm_drag.admin'. |
Config.UI.useMetric | Show km/h in the driver HUD (finish boards stay in mph). |
Config.Brand | Name, strapline and accent colour shown on the screens. |
Config.Locale | 'auto' follows the language set in Swarm Bridge. Set a code such as 'de' to force this script into another language. See Languages. |
Commands & permissions
| Command | Who | What it does |
|---|---|---|
/dragleave | Everyone | Release your lane. |
/dragrecords | Everyone | Show track records. |
/swarmdragclose | Everyone | Close the results or records screen (Backspace). |
/dragtourney | Everyone | Driver and paddock tournament view. |
/dragjoin | Everyone | Join an open tournament. |
/dragready | Everyone | Lock your setup at your assigned pit. |
/dragreset | Admin | Reset race control. |
/admindrag | Admin | Tournament race control. |
/dragtest | Admin | Finish-board display test. Also needs Config.Debug = true. |
/dragfireworkgate <1-6> | Admin | Test one firework gate pair. |
/dragfireworkrun | Admin | Test all six gates in sequence. |
/dragfireworkfinale | Admin | Test the finale. |
Permissions (ACE)
Add to server.cfg, changing group.admin to your staff group if needed:
add_ace group.admin swarm_drag.admin allowKeys
- E: reserve a lane, confirm ready, or open the tournament at the wall or pit
- G: leave the lane
- K: show records near the strip
- Backspace: close results or records
Good to know
- The strip sits at a fixed spot in Sandy Shores. Check it doesn't overlap another map there.
- The speed limiter reset restores the fixed
restoreMaxSpeedvalue, not each car's own previous limit.
Need help?
Ask in the Swarm Scripts Discord and we'll help you get set up.
Swarm Scripts
Nyxia Development