← 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.

RequirementWhat it's forIncluded
OneSyncRequired by the resource.No
Dragstrip mapStreamed from the resource's own stream/ folder. Included.Yes
swarm_bridgeRequired for the licensed edition. In the source edition it only sets the language.Yes

Install

  1. Copy the folders Swarm_Drag, swarm_bridge into your server's resources folder. Already have swarm_bridge from another Swarm script? Keep just one copy, the newest.
  2. Add them to server.cfg, dependencies first:
    ensure swarm_bridge
    ensure Swarm_Drag
  3. Database: No database. Records are saved to records.json in the resource folder.
  4. 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.
  5. 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.

SettingWhat it does
Config.Integration.speedLimiter.enabledAfter each pass the car's top speed is reset to restoreMaxSpeed. Set false if you don't run a speed limiter.
Config.Integration.speedLimiter.restoreMaxSpeedThe 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.accountAccount for buy-ins and payouts ('bank' by default).
Config.Tournament.economy.allowStandaloneBuyInIn standalone mode, lets players join tournaments without being charged.
Config.Tournament.payoutsPrize pool split (50 / 30 / 20 by default).
Config.Admin.acePermission / Config.Tournament.acePermissionAdmin ACE, 'swarm_drag.admin'.
Config.UI.useMetricShow km/h in the driver HUD (finish boards stay in mph).
Config.BrandName, 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

CommandWhoWhat it does
/dragleaveEveryoneRelease your lane.
/dragrecordsEveryoneShow track records.
/swarmdragcloseEveryoneClose the results or records screen (Backspace).
/dragtourneyEveryoneDriver and paddock tournament view.
/dragjoinEveryoneJoin an open tournament.
/dragreadyEveryoneLock your setup at your assigned pit.
/dragresetAdminReset race control.
/admindragAdminTournament race control.
/dragtestAdminFinish-board display test. Also needs Config.Debug = true.
/dragfireworkgate <1-6>AdminTest one firework gate pair.
/dragfireworkrunAdminTest all six gates in sequence.
/dragfireworkfinaleAdminTest the finale.

Permissions (ACE)

Add to server.cfg, changing group.admin to your staff group if needed:

add_ace group.admin swarm_drag.admin allow

Keys

  • 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 restoreMaxSpeed value, not each car's own previous limit.

Need help?

Ask in the Swarm Scripts Discord and we'll help you get set up.