RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

AI Module ReferenceBackwards Compatibility Module ReferenceBdebug Module ReferenceBdebugImpl Module ReferenceBeamstate Module ReferenceBullettime Module ReferenceController Module ReferenceDamageTracker Module ReferenceDrivetrain Module ReferenceElectrics Module ReferenceElectrics Custom Value ParserEnergyStorage Module ReferenceExtensions Module ReferenceFire Module ReferenceVehicle Engine True GlobalsGuihooks Module ReferenceGUI Streams Module ReferenceHTML Texture Module ReferenceHydros Module ReferenceInput Module ReferenceJBeam-Lua Integration GuideMapmgr Module ReferenceMaterial Module ReferenceBeamNG Math & Unit Conversions Referenceobj (Vehicle C++ Object)PartCondition Module ReferenceParticlefilter Module ReferenceParticles Module ReferencePowertrain Module ReferenceVehicle Property & Module TreeProps Module ReferenceProtocols Module ReferenceRecovery Module ReferenceScriptAI Module ReferenceSensors Module ReferenceSounds Module ReferenceStreams Module ReferenceThrusters Module Reference`v` (Vehicle Data & JBeam)Wheels Module Reference

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 Referenceve

Vehicle Property & Module Tree

Quick reference for common object hierarchies and their access paths in Vehicle Lua.

Quick reference for common object hierarchies and their access paths in Vehicle Lua.

1. JBeam Data Structure (v.data)

Access via: v.data.[section] These tables contain the parsed JBeam configuration for the vehicle.

SectionAccess PathDescription
Main Enginev.data.mainEngineJBeam settings for the primary engine.
Gearboxv.data.gearboxJBeam settings for the transmission.
Driveshaftv.data.driveshaftJBeam settings for the driveshaft.
Wheelsv.data.wheelsConfiguration for all physical wheels.
Energy Storagev.data.energyStorageList of fuel tanks/batteries.
Controllersv.data.controllerList of active Controllers.
Variablesv.data.variablesCurrent values of all JBeam $variables.

2. The Engine Object (mainEngine)

Access via: local engine = powertrain.getDevice("mainEngine")

Sub-Module / PropertyAccess PathDescription
Thermalsengine.thermalsAccess to combustionEngineThermals (temps, damage).
Turbochargerengine.turbochargerAccess to turbocharger module (boost, wastegate).
Superchargerengine.superchargerAccess to supercharger module.
Nitrous (N2O)engine.nitrousOxideAccess to nitrousOxide module.
Torque Curveengine.torqueCurveRaw table of RPM -> Torque.
Is Running?not engine.isStalled and engine.outputAV1 > 0Check if engine is physically running.
Starterengine:activateStarter()Method to engage starter.

3. The Gearbox Object (gearbox)

Access via: local gearbox = powertrain.getDevice("gearbox")

Property / MethodAccess PathDescription
Current Geargearbox.gearIndexInteger of current gear.
Modegearbox.mode"drive", "manual", "neutral", etc.
Shift Methodgearbox:shiftToGearIndex(i)Force a gear change.

4. Global Controllers

ControllerAccess PathDescription
Main Controllercontroller.mainControllerPrimary driving logic (shifting, throttle).
ESC / TCScontroller.getController("esc")Electronic Stability / Traction Control.

5. Common Data Paths

  • RPM: electrics.values.rpm
  • Airspeed: electrics.values.airspeed (m/s)
  • Wheel Speed: electrics.values.wheelspeed (m/s)
  • Throttle Input: electrics.values.throttle (0-1)
  • Brake Input: electrics.values.brake (0-1)
  • Clutch Input: electrics.values.clutch (0-1)

Powertrain Module Reference

Module defined in `lua/vehicle/powertrain.lua`. This is the physical powertrain simulation engine, managing the interconnected tree of [Devices](/docs/api/ve/powertrain/FOLDER_OVERVIEW) (engines, transmissions,

Props Module Reference

Module defined in `lua/vehicle/props.lua`. Manages animated vehicle "props" (steering wheels, needles, shifters, etc.).

On this page

1. JBeam Data Structure (v.data)2. The Engine Object (mainEngine)3. The Gearbox Object (gearbox)4. Global Controllers5. Common Data Paths