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
4WD / Transfer Case ControllerAdvanced Coupler ControlAirplane Control SurfacesAxle Lift ControllerBeacon Spin ControllerBeam NavigatorBypass Dampers ControllerController TemplateControl ModesDrag TimerDrive ModesDummy ControllerElectronic Stability Control (ESC)ETK Gauges ControllerVehicle Controllers OverviewHydraulic Suspension ControllerInput/Output Demo ControllerJATO (Jet Assisted Take-Off)Lightbar ControllerLine LockLogger TemplateNitrous Oxide InjectionPlayer ControllerPneumatics System ControllerPower Steering ControllerPyrotechnic Charge ControllerSBR Gauges ControllerShift Lights ControllerTire Pressure ControlTrailer Landing Feet ControllerTwo-Step Launch ControlVivace Gauges ControllerWendover Gauges Controller

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 Referencevecontroller

Control Modes

Manages multiple input mapping profiles that change how physical controls are interpreted. Each mode can remap, scale, and smooth input axes differently — useful for vehicles with multiple operating modes (e.g., crane vs. drive mode on utility vehicles).

Manages multiple input mapping profiles that change how physical controls are interpreted. Each mode can remap, scale, and smooth input axes differently — useful for vehicles with multiple operating modes (e.g., crane vs. drive mode on utility vehicles).


State Fields

FieldTypeDescription
controlModeNamestringThe human-readable name of the currently active control mode.
controlModeIndexnumberThe index of the active control mode in the defined modes list.

Public API

FunctionDescription
setControlModeIndex(index)Directly switches to a specific control mode.
toggleControlMode(value)Cycles through available control modes.
setInputValue(name, value)Overrides or sets a raw input value for use in mode mapping.

Hooks

HookDescription
init(jbeamData)Initializes available modes and registers them in the radial Quick Access menu.
updateGFX(dt)Maps current physical inputs to target electrics signals based on the active mode's smoothing and speed settings.

Usage Example

-- Cycle to the next control mode
controller.getController("controlModes").toggleControlMode(1)

-- Jump to a specific mode by index
controller.getController("controlModes").setControlModeIndex(2)

See Also

  • Drive Modes — Vehicle-wide driving profiles
  • Vehicle Controller — Main control logic

Controller Template

A boilerplate template for creating new custom vehicle controllers. Copy this file as a starting point when developing a new controller module. It demonstrates the standard lifecycle hooks, state management, and API patterns.

Drag Timer

Precision timing controller for drag racing. Measures elapsed time and trap speed over standard drag racing distances (60ft, 330ft, 660ft, 1000ft, 1/4 mile, 1/2 mile). Integrates with the UI to display live timing data.

On this page

State FieldsPublic APIHooksUsage ExampleSee Also