RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Allow WalkingBlacklist WalkingCan Enter From WalkingCareer ActiveComplete ScenarioCountdownDecal CircleDecal LineDecal PathDecal SingleIs Walking BlacklistedGroundmarker Remaining DistanceGroundmarkersIs WalkingIs Walking EnabledMission DefaultsMultiseatDetect Acceleration At StartPointsBar PointsPointsBar ThresholdsRemove Other VehiclesToggle WalkingIn Zone
Drag Race StateGet Drag Race TimesGenerate Drag Race OpponentsGet Drag Race Winner DataGet Drag Racer DataGet Drag Racer Spawn PointGet Drag Racer StatusLoad Drag Race DataReset Drag RaceSet Drag VehiclesSet Drag Racer DialStart Drag Race

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionsflowgraphnodesgameplaydragRace

Generate Drag Race Opponents

**File:** `flowgraph/nodes/gameplay/dragRace/generateDragOpponents.lua`

File: flowgraph/nodes/gameplay/dragRace/generateDragOpponents.lua

Description: Gives you a random amount of vehicles configurations determinated by the player vehicle.

Category: once_instant Dependencies: gameplay_drag_dragBridge

Input Pins

NameTypeDescription
vehIdnumberVehicle ID. If not present, player vehicle will be used.
numberOfOpponentsnumberNumber of generated vehicles.
playerDialnumberNone

Output Pins

NameTypeDescription
vehicleGrouptableNone

Methods

  • C:init()
  • C:drawCustomProperties()
  • C:drawMiddle(builder, style)
  • C:filterValidVehicleConfigs()
  • C:createVehicleEntry(config)
  • C:getPlayerVehicleAsFallback(count)
  • C:getPlayerDial(currentVeh)
  • C:generateBracketRaceOpponents(vehConfigs, count)
  • C:generateSimilarOpponents(vehConfigs, dial, count, currentVeh)
  • C:selectVehicle()
  • C:_executionStarted()
  • C:workOnce()

See Also

  • Drag Race State - Related reference
  • Get Drag Race Times - Related reference
  • Get Drag Race Winner Data - Related reference
  • FlowGraph Guide - Guide

Get Drag Race Times

**File:** `flowgraph/nodes/gameplay/dragRace/dragTimes.lua`

Get Drag Race Winner Data

**File:** `flowgraph/nodes/gameplay/dragRace/getDragWinners.lua`

On this page

Input PinsOutput PinsMethodsSee Also