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 Electrics Value

- **Node Name:** `Get Electrics Value`

Overview

  • Node Name: Get Electrics Value
  • Category: once_f_duration
  • File: extensions/flowgraph/nodes/vehicle/getElectricsValue.lua

Gets an electrics system value from a vehicle (throttle, RPM, brake, gear, etc.). Uses the vehicle bridge to register for value change notifications and reads cached data each frame.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of the vehicle. Defaults to player vehicle
keystringElectrics value key (e.g. throttle, rpm, brake)

Output Pins

PinTypeDescription
valueanyThe returned electrics value

Key Templates (Suggestions)

throttle, throttle_input, rpm, brake, brake_input, parkingbrake, parkingbrake_input, gear, clutch

Internals

Key Methods

MethodDescription
postInit()Populates hard templates for the key pin with common electrics values
workOnce()Registers a value change notification for the specified key via core_vehicleBridge.registerValueChangeNotification
work()Reads the cached value via core_vehicleBridge.getCachedVehicleData. When a value arrives, sets duration to finished
clearNotification()Unregisters the value change notification when the node resets
onNodeReset()Sets duration state to inactive and clears notifications

How It Works

  1. workOnce() resolves the vehicle and registers for change notifications on the specified key.
  2. The node stores setup data (vehId, key) for cleanup.
  3. Each frame, work() checks core_vehicleBridge.getCachedVehicleData(vehId, key).
  4. When a non-nil value is returned, it outputs the value and sets the duration state to finished.
  5. On reset or execution stop, clearNotification() unregisters the listener.

Usage Example

-- In a flowgraph:
-- [Get Electrics Value (key="rpm")] → value → [Display RPM]

-- Programmatic equivalent:
local veh = getPlayerVehicle(0)
core_vehicleBridge.registerValueChangeNotification(veh, 'rpm')
-- Later each frame:
local rpm = core_vehicleBridge.getCachedVehicleData(veh:getId(), 'rpm')

Key Dependencies

  • core_vehicleBridge.registerValueChangeNotification() - subscribes to vehicle data changes
  • core_vehicleBridge.unregisterValueChangeNotification() - unsubscribes from changes
  • core_vehicleBridge.getCachedVehicleData() - reads cached electrics values

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 Vehicle Active

- **Node Name:** `Get Vehicle Active`

Get Gearboxmode

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

On this page

OverviewPin SchemaInput PinsOutput PinsKey Templates (Suggestions)InternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also