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
Active Center DifferentialAnti-Lag SystemCombustion Engine GovernorRim Pull Control

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 ReferencevecontrollerpowertrainControl

Anti-Lag System

Controls turbocharger anti-lag systems that maintain boost pressure during throttle lift-off. Injects fuel and retards ignition timing to keep exhaust gases flowing through the turbine, eliminating turbo lag on throttle reapplication.

Controls turbocharger anti-lag systems that maintain boost pressure during throttle lift-off. Injects fuel and retards ignition timing to keep exhaust gases flowing through the turbine, eliminating turbo lag on throttle reapplication.


Public API

FunctionDescription
setAntilagState(newState)Manually forces the ALS state machine into a specific mode.

Hooks

HookDescription
init(jbeamData)Connects to the engine's turbocharger and initializes the turbo speed PID controller.
updateGFX(dt)Main state machine logic (Idle, Armed, ManualOverride, Timeout). Monitors turbo speed and applies engine torque overrides to maintain target boost, while enforcing safety timeouts to prevent thermal damage.
module.reset(jbeamData)Resets the controller to its initial state.

Usage Example

-- Anti-lag is typically toggled via input binding
-- Active when throttle is lifted but RPM is above threshold

See Also

  • Two Step Launch — Launch control (often paired with anti-lag)
  • Nitrous Oxide — Alternative power augmentation

Active Center Differential

Controls electronically-adjustable center differential systems that vary front/rear torque split. Manages clutch pack engagement to continuously adjust torque distribution based on driving conditions.

Combustion Engine Governor

Electronic engine speed governor that limits maximum RPM or maintains a target idle/operating speed. Used on diesel engines in trucks and heavy equipment to prevent over-revving and maintain stable operating speeds under varying loads.

On this page

Public APIHooksUsage ExampleSee Also