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 Gearboxmode

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

Overview

  • Node Name: Get Gearboxmode
  • Category: once_f_duration
  • File: extensions/flowgraph/nodes/vehicle/getGearboxMode.lua

Gets the current gearbox mode of a vehicle (e.g. automatic, manual, sequential). Uses an async request through the vehicle bridge and waits for the response.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of the vehicle. Defaults to player vehicle

Output Pins

PinTypeDescription
valueanyThe gearbox mode 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, "mainController", "gearboxMode")
work()Checks if receivedInfo has been populated by the callback; if so, outputs it and sets duration to finished

How It Works

  1. workOnce() resolves the vehicle and sends an async request to the vehicle's main controller for its gearbox mode.
  2. The callback stores the result in self.receivedInfo.
  3. Each frame, work() checks if the response has arrived.
  4. When available, it outputs the value, clears receivedInfo, and sets duration to finished.

Usage Example

-- In a flowgraph:
-- [Get Gearboxmode] → value → [String Compare "arcade"] → [Is Automatic]

-- Programmatic equivalent:
local veh = getPlayerVehicle(0)
core_vehicleBridge.requestValue(veh, function(val)
  print("Gearbox mode:", val.result)
end, "mainController", "gearboxMode")

Key Dependencies

  • core_vehicleBridge.requestValue() - sends an async request to a vehicle controller and invokes a callback with the result

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

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

Get Powertrain Data

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

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also