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
| Hook | Description |
|---|---|
onReset | Resets 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 metersSee 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.