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 Interface

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

Unified bridge between external game systems and the vehicle Lua environment. Routes requests and notifications from the Game Engine (GE) to specialized handler modules for AI control, electrics, powertrain, recovery, and more.

This is the main entry point for GE-to-vehicle communication. It delegates to sub-modules in the gameplayInterfaceModules/ directory.


Hooks

HookDescription
onInitLoads all gameplay interface sub-modules and registers their action/lookup handlers.

Sub-Modules

ModuleDescription
interactAIAI behavior control (mode, speed, waypoints)
interactBeamstateVehicle structural state queries and modifications
interactCargoContainersCargo container attachment and management
interactControllerInput controller and drive mode management
interactElectricsElectrical system queries (lights, signals, gauges)
interactEnergyStorageFuel tank and battery state management
interactFireVehicle fire simulation control
interactMiscMiscellaneous vehicle actions (horn, paint, etc.)
interactPartConditionPart wear and damage condition management
interactPowertrainPowertrain device queries and control
interactRecoveryVehicle recovery and respawn handling
interactVehiclePerformanceDataPerformance data collection triggers

Usage Example

-- The gameplay interface is loaded automatically on vehicle spawn
-- GE code communicates with it via:
obj:queueGameEngineLua("extensions.gameplayInterface.action('setAiMode', {mode = 'span'})")

See Also

  • Gameplay Statistic — Metric reporting hub
  • TechCore — External research API (similar bridge pattern)

Vehicle Extensions Overview

This directory contains modular extensions that provide specialized functionality for vehicles. These range from UI helpers to low-level Tech sensor integrations.

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.

On this page

HooksSub-ModulesUsage ExampleSee Also