API Referencecommonextensions
extensions/ - BeamNG Extension Modules
Extension modules that integrate with BeamNG's hook system. Organized by subsystem.
Extension modules that integrate with BeamNG's hook system. Organized by subsystem.
networking/
| File | Description |
|---|---|
editorToolchain.lua | TCP server for external editor tool communication |
tech/
| File | Description |
|---|---|
techCapture.lua | Record/replay tech layer communication for debugging |
ui/
| File | Description |
|---|---|
imgui.lua | ImGui context manager - initializes Lua↔C++ ImGui context |
imgui_api.lua | Base ImGui API module (shared namespace for bindings) |
imgui_custom_luaintf.lua | Custom type constructors (ImVec2, BoolPtr, FloatPtr, etc.) |
imgui_gen_luaintf.lua | Auto-generated ImGui function bindings (2000+ functions) |
imguiUtils.lua | Higher-level widgets: dropdowns, tree tables, value displays |
imguiWire.lua | ImGui wire protocol for serialized/remote draw commands |
improfiler.lua | In-game LuaJIT profiler overlay using ImGui |
ui/flowgraph/
| File | Description |
|---|---|
editor.lua | Flowgraph editor API: types, node categories, variable editors |
editor_api_luaintf.lua | Lua bindings for flowgraph node editor C++ API |
utils Reference
Module defined in `lua/common/utils.lua`. Massive utility library providing color functions, JSON encoding/decoding, table manipulation, string utilities, file I/O, serialization, debugging tools, and
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.