RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
extensions/ - BeamNG Extension Modules
ImGui Base APIImGui Custom BindingsImGui Auto BindingsImGui ContextImGui WidgetsImGui Wire ProtocolImGui Profiler

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

ImGui Base API

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

See Also

  • ui/imgui Reference - Related reference
  • ui/imguiUtils Reference - Related reference
  • ui/imguiWire Reference - Related reference
  • Common Libraries Overview - Guide

Tech Capture

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

ImGui Custom Bindings

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 NotesSee Also