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

Traffic Driving Stats

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

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

Description: Gives information about the driving stats of a vehicle.

Category: repeat_instant Tags: police, cops, pursuit, chase, traffic, ai

Input Pins

NameTypeDescription
vehIdnumberVehicle id to get information from; if none given, uses the player vehicle.

Output Pins

NameTypeDescription
speedLimitnumberSpeed limit of the current road.
speedRationumberVehicle speed divided by the speed limit.
collisionsnumberNumber of collisions with other traffic vehicles.
driveScorenumberValue for how neatly the vehicle is driving (from 0 to 1).
directionScorenumberValue for how often the vehicle is on the correct side of the road (from 0 to 1).
intersectionScorenumberValue for vehicle obeying traffic signals (from 0 to 1).

Methods

  • C:work()

See Also

  • Add Vehicle (Traffic) - Related reference
  • File Vehicle Group - Related reference
  • Get Traffic State - Related reference
  • FlowGraph Guide - Guide

Add Vehicle (Traffic)

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

File Vehicle Group

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

On this page

Input PinsOutput PinsMethodsSee Also