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
Add Vehicle (Traffic)Traffic Driving StatsFile Vehicle GroupGet Traffic StateGet Vehicle Id From TableGet Traffic Vehicle DataParking System ParametersTrack Vehicle ParkingPursuit InformationSet Pursuit ModePursuit ParametersPursuit RoadblockRemove Vehicle (Traffic)Setup Parking SystemSetup Pursuit GameplaySet Traffic Vehicle DataSet Vehicle FlowgraphActivate TrafficGenerate Vehicle GroupMove Vehicle GroupTraffic ParametersScatter TrafficSpawn Vehicle Group

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 Extensionsflowgraphnodesgameplaytraffic

Spawn Vehicle Group

**File:** `flowgraph/nodes/gameplay/traffic/trafficSpawnGroup.lua`

File: flowgraph/nodes/gameplay/traffic/trafficSpawnGroup.lua

Description: Spawns a group of vehicles; use the Set Vehicle Group node for the group data.

Tags: spawn, vehicle, group, traffic, multispawn

Input Pins

NameTypeDescription
flowflow
resetflowDeletes group vehicles and resets this node.
grouptableVehicle group data; if none given, the default traffic group will spawn.
quantitynumberNumber of new vehicles to spawn; set to -1 to use traffic value from the game settings.
shuffleboolIf true, randomize the spawning order of the group.
spawnModestringSpawn mode; see Node Properties for list.
spawnGapnumberDistance between vehicle spawn points.
startPosvec3Base position to start spawning from.
startRotquatBase rotation to start spawning from.
randomColorsboolIf true, vehicles will spawn with randomly selected colors.
dontDeleteboolIf true, the vehicle will not be deleted when you stop the project.

Output Pins

NameTypeDescription
flowflow
loadedflowFlows when the vehicle group is loaded.
vehicleIdstableTable of newly spawned vehicle ids.

Methods

  • C:init()
  • C:_executionStopped()
  • C:onNodeReset()
  • C:resetState()
  • C:postInit()
  • C:onVehicleGroupSpawned(vehIds, groupId)
  • C:work()

See Also

  • Add Vehicle (Traffic) - Related reference
  • Traffic Driving Stats - Related reference
  • File Vehicle Group - Related reference
  • FlowGraph Guide - Guide

Scatter Traffic

**File:** `flowgraph/nodes/gameplay/traffic/trafficScatter.lua`

Get Signal Controller

**File:** `flowgraph/nodes/gameplay/traffic/signals/controller.lua`

On this page

Input PinsOutput PinsMethodsSee Also