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

Get Powertrain Data

- **Node Name:** `Get Powertrain Data`

Overview

  • Node Name: Get Powertrain Data
  • Category: once_f_duration
  • File: extensions/flowgraph/nodes/vehicle/getPowertrainData.lua

Gets arbitrary powertrain device data from a vehicle. Specify a device name and property to query any powertrain value (engine RPM, torque, gear ratio, etc.).

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of the vehicle. Defaults to player vehicle
devicestringName of the powertrain device (e.g. mainEngine, gearbox)
propertystringProperty to read from the device (e.g. outputTorque, gearRatio)

Output Pins

PinTypeDescription
valueanyThe returned powertrain value

Internals

Key Methods

MethodDescription
init() / _executionStarted()Reset via onNodeReset()
onNodeReset()Clears receivedInfo and sets duration to inactive
workOnce()Sends an async request via core_vehicleBridge.requestValue(veh, callback, 'powertrainDevice', device, property)
work()Checks for receivedInfo; when available, outputs the value and sets duration to finished

How It Works

  1. workOnce() resolves the vehicle and sends an async request to the specified powertrain device for the given property.
  2. The callback captures val.result into self.receivedInfo.
  3. Each frame, work() checks if the async response has arrived.
  4. When data is available, it outputs the value, clears receivedInfo, and sets duration to finished.

Usage Example

-- In a flowgraph:
-- [Get Powertrain Data (device="mainEngine", property="outputTorque")]
--   → value → [Display Torque]

-- Programmatic equivalent:
local veh = getPlayerVehicle(0)
core_vehicleBridge.requestValue(veh, function(val)
  print("Engine torque:", val.result)
end, 'powertrainDevice', 'mainEngine', 'outputTorque')

Key Dependencies

  • core_vehicleBridge.requestValue() - sends async requests to vehicle powertrain devices

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

Get Gearboxmode

- **Node Name:** `Get Gearboxmode`

Gravity Force

- **Node Name:** `Gravity Force`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also