RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

server/commands - Camera & Input Commandsge_utils - Game Engine Utility Functionsmain.lua - GE Lua Entry Point & Game Loopmap.lua - Navigation Graph (AI Road Map)screenshot.lua - Screenshot Systemserver/server - Level Loading & Game ServerserverConnection - Client-Server Connection Manager`setSpawnpoint` - Default Spawn Point Persistence`simTimeAuthority` - Simulation Time & Bullet Time Control`spawn` - Vehicle Spawning & Safe Placement`suspensionFrequencyTester` - Suspension Natural Frequency Analysis
Activity ManagerAudio Bank ManagerAudio Ribbon SystemBus Route ManagerCamera SystemCore Chat (IRC)Core CheckpointsCore Command HandlerCoupler Camera ModifierDevices (RGB Peripherals)Dynamic PropsEnvironmentFlowgraph ManagerForestFun StuffGame ContextGame StateGround Marker ArrowsGround MarkersHardware InfoHighscoresHotlappingInventoryJob SystemLap TimesLevelsLoad Map CommandMetricsMod ManagerMultiseatMultiseat CameraMulti SpawnOnlinePaths (Camera Paths)Quick Access (Radial Menu)Recovery PromptRemote ControllerReplayRepositoryRope Visual TestScheme Command ServerCore SnapshotCore SoundsCore TerrainTraffic SignalsTrailer RespawnVehicle Active PoolingVehicle Bridge (GE ↔ VLua Communication)Vehicle MirrorsVehicle PaintsCore VehiclesVehicle TriggersVersion UpdateWeather SystemWindows Console

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 ReferenceGE Extensionscore

Vehicle Bridge (GE ↔ VLua Communication)

Black-box communication layer between GE Lua and vehicle Lua (VLua). All gameplay-related VLua requests should go through this bridge via `gameplayInterface` on the vehicle side.

Black-box communication layer between GE Lua and vehicle Lua (VLua). All gameplay-related VLua requests should go through this bridge via gameplayInterface on the vehicle side.


Public API

FunctionSignatureDescription
M.requestValue(veh, callback, ...)Requests data from VLua; callback receives deserialized result
M.executeAction(veh, ...)Executes a gameplay action on the vehicle side
M.callbackFromVlua(vehId, callbackId, ...)Internal - called by VLua to return data to GE
M.registerValueChangeNotification(veh, electricsKey)Subscribes to electrics value change events
M.unregisterValueChangeNotification(veh, electricsKey)Unsubscribes from value change events
M.getCachedVehicleData(vehId, key)Returns cached electrics data for a vehicle
M.setLogCommands(enabled)Enables/disables command logging to console
M.logCommandFunction(veh, command)Logs vehicle command to console (the actual logging function)

Fields

FieldTypeDescription
M.vehicleDatatableCached data per vehicle id {data={}, registeredCallbacks={}}
M.logCommandfunctionCurrent logging function; nop by default, set to logCommandFunction via setLogCommands(true)

Fields

FieldTypeDescription
M.vehicleDatatableCached data per vehicle id {data={}, registeredCallbacks={}}

Hooks

HookDescription
M.onVehicleDestroyedClears cached data for the vehicle
M.onVehicleReplacedClears cached data for the replaced vehicle

Usage Example

local bridge = extensions.core_vehicleBridge
local veh = getPlayerVehicle(0)

-- Request a value from the vehicle
bridge.requestValue(veh, function(data)
  log("I", "", "Got data: " .. dumps(data))
end, "someSystemKey")

-- Execute an action on vehicle side
bridge.executeAction(veh, "setFreeze", true)

-- Subscribe to electrics changes
bridge.registerValueChangeNotification(veh, "rpm")
-- Later read cached value
local rpm = bridge.getCachedVehicleData(veh:getID(), "rpm")

Vehicle Active Pooling

Manages pools of vehicles with active/inactive states for performance. Controls which vehicles are visible (active) based on configurable limits and distance culling.

Vehicle Mirrors

Renders vehicle mirror reflections by computing reflection camera transforms from mirror node positions and the player camera.

On this page

Public APIFieldsFieldsHooksUsage Example