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

Cruise Control

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

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


Public API

FunctionSignatureDescription
(state only)—Cruise control is driven by input actions and hooks. Speed target is set via the vehicle input system.

State Fields

M.hasReachedTargetSpeed  -- boolean: true once the vehicle reaches the set speed
M.minimumSpeed           -- minimum speed threshold below which cruise control disengages

Hooks

HookDescription
onResetDisables cruise control and resets the target speed and PID state.

Usage Example

-- Check if cruise control has reached target
if extensions.cruiseControl.hasReachedTargetSpeed then
  log("I", "cruise", "Target speed reached")
end

See Also

  • ACC — Adaptive Cruise Control (tech extension with radar)
  • Gameplay Interface — Can trigger cruise control via external commands

Couplings

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

Drag AI

Automated drag racing launch and lane-keeping assistance. Controls throttle, shifting, and steering for AI-driven drag strip runs.

On this page

Public APIState FieldsHooksUsage ExampleSee Also