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

Odometer

Persistent distance tracking and statistical reporting. Tracks total distance driven and provides trip meter functionality for the vehicle UI.

Persistent distance tracking and statistical reporting. Tracks total distance driven across sessions and provides trip meter functionality for the vehicle's dashboard UI.


Hooks

HookDescription
onResetResets trip meter while preserving total odometer value.

Usage Example

-- Odometer data is available via electrics
local totalDistance = electrics.values.odometer  -- in meters
local tripDistance = electrics.values.trip       -- in meters

See Also

  • Simple Trip App — Trip computer UI backend
  • Gameplay Statistic — Metric aggregation

MQTT Grafana Demo

Streams vehicle telemetry data to an MQTT broker for real-time visualization in Grafana dashboards. Demonstrates integration between BeamNG and external monitoring tools.

OutGauge

Implements the OutGauge UDP protocol for streaming basic vehicle telemetry (RPM, speed, gear) to external dashboard applications and hardware gauges.

On this page

HooksUsage ExampleSee Also