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/flowgraph/editor_api_luaintf Referenceui/flowgraph/editor 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 Referencecommonextensionsuiflowgraph

ui/flowgraph/editor_api_luaintf Reference

Module defined in `lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua`. Lua bindings for the flowgraph node editor C++ API (`Engine.fge`). Provides ID types, enum constants, and editor control

Module defined in lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua. Lua bindings for the flowgraph node editor C++ API (Engine.fge). Provides ID types, enum constants, and editor control functions.


Exports

Returns a function function(M) that adds the following to the flowgraph editor API table:

ID Constructors

M.PtrToId(obj) - Get numeric ID from an editor object

M.NodeIdPtr() - Create a new NodeId (initialized to 0)

M.LinkIdPtr() - Create a new LinkId (initialized to 0)

M.PinIdPtr() - Create a new PinId (initialized to 0)

Enum Constants

  • M.StyleColor_Bg, M.StyleColor_Grid, M.StyleColor_NodeBg, M.StyleColor_NodeBorder, M.StyleColor_HovNodeBorder, etc.
  • All fge.enum.* style and interaction enums

Editor Functions

  • Node creation, linking, selection, layout, and rendering functions
  • Wraps the ImGui Node Editor C++ API

Internal Notes

  • 313 lines of bindings
  • Uses Engine.fge (flowgraph editor) C++ module
  • Uses ui_imgui (aliased as im) for ImGui integration
  • Pattern: return function(M) - extends shared API table

ui/improfiler Reference

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

ui/flowgraph/editor Reference

Module defined in `lua/common/extensions/ui/flowgraph/editor.lua`. Flowgraph visual scripting editor API - type system, node categories, variable editors, vehicle selectors, and display utilities.

On this page

ExportsID ConstructorsM.PtrToId(obj) - Get numeric ID from an editor objectM.NodeIdPtr() - Create a new NodeId (initialized to 0)M.LinkIdPtr() - Create a new LinkId (initialized to 0)M.PinIdPtr() - Create a new PinId (initialized to 0)Enum ConstantsEditor FunctionsInternal Notes