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
Advanced Wheel DebugAero DebugVehicle APIChassis DataCouplingsCruise ControlDrag AIDynamic Vehicle DataDyno ClientESC CalibrationESC MeasurementVehicle Extensions OverviewGameplay InterfaceGameplay StatisticInput AnalyzerMQTT Grafana DemoOdometerOutGaugeOutSimPerfect LaunchPerformance LoggerSimple Trip AppSkeletonStraight LineTelemetry LoggerUT RecorderVehicle Performance DataVehicle Stats Logger

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 Referenceveextensions

Couplings

Manages trailer hitches, fifth-wheel connections, and auto-coupling logic. Handles the attach/detach lifecycle for towed vehicles.

Manages trailer hitches, fifth-wheel connections, and auto-coupling logic. Handles the attach/detach lifecycle for towed vehicles, including automatic latching when vehicles come into proximity.


Public API

FunctionSignatureDescription
isAutoCouplingActive() → booleanReturns whether automatic coupling is currently enabled. Called by beamstate to determine toggle behavior.
isCouplerAttached() → booleanReturns whether any coupler on this vehicle is currently attached to another vehicle.

Hooks

HookDescription
onBeamstateActivateAutoCouplingCalled when auto-coupling is activated via the toggle UI. Enables proximity-based automatic latching.
onBeamstateDisableAutoLatchingCalled when auto-coupling is disabled via the toggle UI. Stops automatic latching but keeps existing connections.
onBeamstateDetachCouplersCalled when couplers are detached via the toggle UI. Releases all active coupling connections.

Usage Example

-- Check if a trailer is attached
if extensions.couplings.isCouplerAttached() then
  log("I", "trailer", "Trailer is connected")
end

-- Query auto-coupling state
local autoCoupling = extensions.couplings.isAutoCouplingActive()

See Also

  • Gameplay Interface — External system bridge that can trigger coupling actions

Chassis Data

Reports vehicle dimensions including track width, wheelbase, overall length, width, and height. Used by other systems for physics calculations and UI display.

Cruise Control

Advanced speed maintenance system with PID control and target speed ramping. Maintains a set vehicle speed by modulating throttle and brake inputs.

On this page

Public APIHooksUsage ExampleSee Also