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
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 Extensionsflowgraphnodesvehicle

Track Vehicle

- **Node Name:** `Track Vehicle`

Overview

  • Node Name: Track Vehicle
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/trackVehicle.lua

Registers a vehicle that was spawned outside the flowgraph so that the flowgraph's vehicle module can manage it.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node.
vehIdnumberVehicle ID. Uses player vehicle if 0 or not present.
dontDeleteboolIf true, the vehicle won't be deleted when the project stops (hidden, default true).

Internals

Key Methods

MethodDescription
init()No-op.
work()Finds the vehicle by ID and adds it to the flowgraph's vehicle module via mgr.modules.vehicle:addVehicle().
_executionStopped()No-op.

How It Works

  1. Resolves the vehicle object from scenetree by its ID.
  2. Calls self.mgr.modules.vehicle:addVehicle(veh, opts) to register the vehicle with the flowgraph manager.
  3. The dontDelete option (default true) prevents the flowgraph from deleting the vehicle when the project stops - important for vehicles the player already owns.

Usage Example

-- Flowgraph:
-- [On Start] → flow → [Track Vehicle]
--                          ↑ vehId ← [Player Vehicle ID]
--                          ↑ dontDelete ← true

-- This allows subsequent flowgraph nodes to reference and manipulate
-- a vehicle that wasn't spawned by the flowgraph itself.

-- Equivalent GE Lua:
local veh = scenetree.findObjectById(vehId)
mgr.modules.vehicle:addVehicle(veh, {dontDelete = true})

Key Dependencies

  • mgr.modules.vehicle:addVehicle() - flowgraph vehicle module registration
  • scenetree.findObjectById() - scene tree lookup

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Static Object Touch

- **Node Name:** `Static Object Touch`

Trailer Respawn Control

- **Node Name:** `Trailer Respawn Control`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also