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

Advanced Coupler Control

Manages automated coupling and decoupling of trailer hitches and tow connections. Handles coupler state machines, latch detection, and electrics integration for advanced towing setups.

Manages automated coupling and decoupling of trailer hitches and tow connections. Handles coupler state machines, latch detection, and electrics integration for advanced towing setups.


Public API

FunctionDescription
new(jbeamData)Initializes the coupler group controller.
detachGroup()Releases all couplers within the group.
tryAttachGroupImpulse()Attempts to re-attach couplers using a physical impulse if they are within range.
module.initSounds(jbeamData)Initializes sound resources.
module.resetSounds(jbeamData)Resets sound state.
module.onCouplerFound(nodeId, obj2id, obj2nodeId)dump(couplerGroup)
module.onCouplerAttached(nodeId, obj2id, obj2nodeId, attachForce)Callback for coupler attached event.
module.onCouplerDetached(nodeId, obj2id, obj2nodeId, breakForce)Callback for coupler detached event.
module.onGameplayEvent(eventName, ...)Callback for gameplay event event.
module.toggleGroup()Toggles group.
module.toggleGroupConditional(conditions)Toggles group conditional.
module.getGroupState()Returns the group state.

Hooks

HookDescription
module.init(jbeamData)print(M.name)
module.reset(jbeamData)Resets the controller to its initial state.
module.updateGFX(dt)Per-frame update for visual state and UI synchronization.

Usage Example

-- Toggle the coupler lock
controller.getController("advancedCouplerControl").toggleCouplerLock()

See Also

  • Couplings - Fifth Wheel — Fifth wheel coupling system
  • Couplings - Kingpin — Kingpin coupling system

4WD / Transfer Case Controller

Manages selectable four-wheel-drive and transfer case systems. Controls switching between 2WD/4WD modes, high/low range selection, and differential locking. Used on vehicles with configurable drivetrain modes like trucks and off-road vehicles.

Airplane Control Surfaces

Controls aerodynamic flight surfaces (ailerons, elevators, rudder, flaps) for airplane-type vehicles. Maps pilot inputs to control surface deflections and manages trim settings.

On this page

Public APIHooksUsage ExampleSee Also