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
ui/imgui_api Referenceui/imgui_custom_luaintf Referenceui/imgui_gen_luaintf Referenceui/imgui Referenceui/imguiUtils Referenceui/imguiWire Referenceui/improfiler 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 Referencecommonextensionsui

ui/imgui_api Reference

Module defined in `lua/common/extensions/ui/imgui_api.lua`. Base ImGui API module - provides the global Lua ImGui context variable that other modules populate.

Module defined in lua/common/extensions/ui/imgui_api.lua. Base ImGui API module - provides the global Lua ImGui context variable that other modules populate.


Exports

Variables

M.ctx

  • Type: userdata|nil
  • Description: Global Lua ImGui context. Initialized to nil, set by ui/imgui when context is ready.

Internal Notes

  • This is the base module that imgui_custom_luaintf and imgui_gen_luaintf extend
  • Other modules add functions to this module's M table via the return function(M) pattern
  • Minimal module - serves as the shared namespace

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.

ui/imgui_custom_luaintf Reference

Module defined in `lua/common/extensions/ui/imgui_custom_luaintf.lua`. Custom Lua-to-ImGui type bindings and helper constructors. Extends the ImGui API module with type wrappers.

On this page

ExportsVariablesM.ctxInternal Notes