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 Wire Protocol

Module defined in `lua/common/extensions/ui/imguiWire.lua`. ImGui wire protocol - serializes ImGui draw commands into a buffer for remote/deferred execution. Enables ImGui rendering across process bou

Module defined in lua/common/extensions/ui/imguiWire.lua. ImGui wire protocol - serializes ImGui draw commands into a buffer for remote/deferred execution. Enables ImGui rendering across process boundaries.


Exports

Functions

M.clear()

Clear the accumulated draw command buffer.

Internal Notes

  • generateId(t, idCache) creates unique IDs for ImGui elements, uses caching
  • funcWrap(name) wraps ImGui function names for serialized dispatch
  • execute(buf) replays serialized ImGui commands from a buffer
  • Known issue: swallows nil arguments (e.g., ProgressBar(0.4, nil, "FOO") becomes ProgressBar(0.4, "FOO"))
  • Used for cross-context ImGui rendering (e.g., flowgraph editor)

See Also

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

ImGui Widgets

Module defined in `lua/common/extensions/ui/imguiUtils.lua`. Higher-level ImGui widget utilities - dropdowns, key-value tables, recursive tree displays, texture objects, and sampled float displays.

ImGui Profiler

Module defined in `lua/common/extensions/ui/improfiler.lua`. ImGui-based LuaJIT profiler visualization - renders profiling data as an in-game overlay using ImGui.

On this page

ExportsFunctionsM.clear()Internal NotesSee Also