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
Rally Mode CountdownRally Loop Synced CountdownRally Mode Create Ground Marker RouteRally Mode Flying FinishRally Mode Fire Rally EventRally Get Reset Budget RemainingRally Mode Handle Lap ChangeRally Mode Race Editor PathRally Debug DrawRally Move Vehicle ToRally Super CountdownRally Mode Register RaceRally Mode Session StartRally Mode Set NoteSearchRally Mode Reset Next PacenoteRally Mode Stage CompleteRally Mode Stage StartRally Mode Track RecoveryRally Track Stage TimeTrack Vehicle Distance to PositionStopped Near Plane?Stopped Near Position?

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 Extensionsflowgraphnodesgameplayrally

Rally Mode Handle Lap Change

**File:** `flowgraph/nodes/gameplay/rally/handleLapChange.lua`

File: flowgraph/nodes/gameplay/rally/handleLapChange.lua

Description: Updates with latest lap info.

Tags: rally

Input Pins

NameTypeDescription
flowflowInflow for this node.
resetflowInflow for this node.
raceDatatableRace data.
noteSearchflowReset completed pacenotes to near car.
lapChangeflowWhen a lap changes.
currLapnumberCurrent lap number.
maxLapnumberMaximum lap number.

Output Pins

NameTypeDescription
flowflowOutflow from this node.

Methods

  • C:init()
  • C:work()

See Also

  • Rally Mode Countdown - Related reference
  • Rally Loop Synced Countdown - Related reference
  • Rally Mode Create Ground Marker Route - Related reference
  • FlowGraph Guide - Guide

Rally Get Reset Budget Remaining

**File:** `flowgraph/nodes/gameplay/rally/getResetBudget.lua`

Rally Mode Race Editor Path

**File:** `flowgraph/nodes/gameplay/rally/raceEditorPath.lua`

On this page

Input PinsOutput PinsMethodsSee Also