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

Gameplay Statistic

Centralized reporting hub for vehicle gameplay metrics and achievements. Collects data from watcher sub-modules and aggregates statistics like airtime, burnouts, and distance traveled.

Centralized reporting hub for vehicle gameplay metrics and achievements. Collects data from watcher sub-modules and aggregates statistics like airtime, burnouts, and distance traveled. Results are sent to the GE layer for achievement tracking and UI display.


Public API

FunctionSignatureDescription
metricAdd(name, value, aggregate)Adds a named metric value with an aggregation strategy (sum, max, etc.). Called by watcher sub-modules.

Hooks

HookDescription
onExtensionUnloadedFlushes any pending metrics to the GE layer before cleanup.

Sub-Modules

ModuleDescription
watchAirtimeTracks vehicle airtime duration
watchBurnoutTracks tire burnout events

Usage Example

-- Report a metric from a watcher module
extensions.gameplayStatistic.metricAdd("airtime", 2.5, "sum")

See Also

  • Gameplay Interface — External system bridge
  • Odometer — Distance tracking

Gameplay Interface

Unified bridge between external game systems and the vehicle Lua environment. Routes requests and notifications from the Game Engine to specialized handler modules.

Input Analyzer

Detects specific user input sequences such as cheat codes or button combos. Monitors controller and keyboard inputs each frame to match predefined patterns.

On this page

Public APIHooksSub-ModulesUsage ExampleSee Also