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
`adasUltrasonic.lua``cameraPreview.lua``capturePlayer.lua``license.lua``lidarTest.lua``multiscreen.lua``openDriveExporter.lua``openStreetMapExporter.lua``partAnnotations.lua``platoonFunctions.lua``pythonExport.lua``rawLidar.lua``rawLidarEmpty.lua``sensors.lua``sumoExporter.lua``techCore.lua``terrainImporter.lua``ultrasonicTest.lua``utils.lua`
`crashOutput.lua`

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 Extensionstechimpactgen

`crashOutput.lua`

> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.

This Source Code Form is subject to the terms of the bCDDL, v. 1.1. If a copy of the bCDDL was not distributed with this file, You can obtain one at http://beamng.com/bCDDL-1.1.txt

Module variable: M

Hooks

  • onInit
  • onUpdate
  • onSocketMessage
  • onVehicleSpawned
  • onScenarioRestarted

Exported Functions

M.onInit()

Line 207

Returns: responses later than this frame

M.onUpdate()

Line 273

Returns: responses later than this frame

M.handleImpactGenSetImageProperties(request)

Line 277

Returns: responses later than this frame

M.handleImpactGenGenerateOutput(request)

Line 292

Returns: responses later than this frame

M.handleImpactGenRunLinear(request)

Line 354

M.handleImpactGenRunTBone(request)

Line 411

M.handleImpactGenRunPole(request)

Line 484

M.handleImpactGenRunNonCrash(request)

Line 520

M.handleImpactGenPostSettings(request)

Line 607

Returns: M

M.onSocketMessage(request)

Line 649

Returns: M

M.onVehicleSpawned(vID)

Line 657

Returns: M

M.onScenarioRestarted()

Line 668

Returns: M

Exported Variables

M.partOptions

Line 672 - {}

Internal Functions

Show internal functions
  • fuzzyTableLookup(d, n) (line 85)
  • getRelevantParts(parts) (line 95)
  • getPartColor(part) (line 114)
  • restructureParts(parts) (line 123)
  • requestMesh(veh) (line 151)
  • renderPerspective(request, origin, angle, idx) (line 159)
  • renderPerspectives(callback) (line 195)
  • waitFrames(callback, frames) (line 219)
  • waitForSpawn(next) (line 229)
  • waitForMesh(callback) (line 235)
  • waitForDamage(veh, other, next) (line 247)
  • getLevelName() (line 265)
  • continueLinear(request, angle, aPos, bPos, bRot, throttle, config, ego, other) (line 336)
  • continueTBone(request, angle, aPos, bPos, bRot, throttle, config, ego, other) (line 393)
  • continuePole(request, angle, pos, throttle, config, ego) (line 449)
  • placePole(polePos) (line 469)
  • placeSkybox() (line 549)
  • continuePostSettings(request, skyboxMat, groundMat) (line 562)
  • setClassProperty(clazz, field, value) (line 589)
  • setWeather(time, clouds, fog) (line 601)

`utils.lua`

> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.

telemetry/core - Telemetry Event Collection System

Reference for `extensions.telemetry.core`, the central telemetry system that collects, buffers, and persists gameplay events to JSONL files.

On this page

HooksExported FunctionsM.onInit()M.onUpdate()M.handleImpactGenSetImageProperties(request)M.handleImpactGenGenerateOutput(request)M.handleImpactGenRunLinear(request)M.handleImpactGenRunTBone(request)M.handleImpactGenRunPole(request)M.handleImpactGenRunNonCrash(request)M.handleImpactGenPostSettings(request)M.onSocketMessage(request)M.onVehicleSpawned(vID)M.onScenarioRestarted()Exported VariablesM.partOptionsInternal Functions