RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
extensions/ - BeamNG Extension Modules
networking/editorToolchain Reference

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 Referencecommonextensionsnetworking

networking/editorToolchain Reference

Module defined in `lua/common/extensions/networking/editorToolchain.lua`. TCP server extension for editor toolchain communication - receives commands from external editors/tools.

Module defined in lua/common/extensions/networking/editorToolchain.lua. TCP server extension for editor toolchain communication - receives commands from external editors/tools.


Exports

Functions

M.onExtensionLoaded()

Hook: Called when the extension is loaded. Initializes the TCP server.

M.onExtensionUnloaded()

Hook: Called when the extension is unloaded. Cleans up connections.

M.onPreRender(dtReal, dtSim, dtRaw)

Hook: Called each frame before rendering. Polls for incoming TCP data.

  • Parameters:
    • dtReal - number - Real delta time
    • dtSim - number - Simulation delta time
    • dtRaw - number - Raw delta time

M.onInit()

Hook: Called during initialization.

Hooks

  • onExtensionLoaded
  • onExtensionUnloaded
  • onPreRender
  • onInit

Internal Notes

  • Uses TCPServer module for socket handling
  • getPeerName extracts peer address from connection
  • onData processes incoming data from connected editors
  • Enables external tools to send commands to the running game

extensions/ - BeamNG Extension Modules

Extension modules that integrate with BeamNG's hook system. Organized by subsystem.

tech/techCapture Reference

Module defined in `lua/common/extensions/tech/techCapture.lua`. Records and replays tech layer communication (requests/responses) for debugging and testing co-simulation sessions.

On this page

ExportsFunctionsM.onExtensionLoaded()M.onExtensionUnloaded()M.onPreRender(dtReal, dtSim, dtRaw)M.onInit()HooksInternal Notes