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

Windows Console

Provides the backend for the Windows debug console window, routing commands to different execution contexts (GE Lua, TorqueScript, CEF/JS, vehicle Lua).

Provides the backend for the Windows debug console window, routing commands to different execution contexts (GE Lua, TorqueScript, CEF/JS, vehicle Lua).


Public API

FunctionSignatureDescription
M.executeCommand(context, cmd)Executes a command string in the specified context
M.tryRunCommand(cmd)Attempts to run a GE Lua command string, auto-wrapping in return if needed
M.configure()Refreshes the context combo box (called by C++ when console activates)

Execution Contexts

ContextDescription
"GE-Lua"Executed in C++ (doesn't reach Lua handler)
"GE-TorqueScript"Evaluated via TorqueScript.eval()
"CEF/UI - JS"Queued to the browser via be:queueJS()
"Current Vehicle - Lua"Sends to the player vehicle's Lua VM
"<vehicleName>"Sends to a specific vehicle's Lua VM

Hooks

HookDescription
M.onExtensionLoadedChecks platform support and enables the extension
M.onVehicleDestroyedRefreshes context list
M.onVehicleSwitchedRefreshes context list
M.onVehicleSpawnedRefreshes context list
M.onVehicleActiveChangedRefreshes context list

Usage Example

-- The console is primarily used interactively via the Windows console window.
-- Programmatic usage:
core_windowsConsole.executeCommand("GE-TorqueScript", 'echo("Hello from TS");')
core_windowsConsole.tryRunCommand('print(be:getObjectCount())')

Weather System

Loads and applies weather presets that modify scene object properties (fog, sky, lighting). Supports instant activation or smooth time-based transitions.

Camera Mode: Autopoint

Filter camera that smoothly adjusts the camera's look-at target to a local offset on the vehicle. Used by external/fan cameras to track specific vehicle nodes.

On this page

Public APIExecution ContextsHooksUsage Example