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
Flowgraph Lua BindingsFlowgraph Editor

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

Flowgraph Lua Bindings

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

See Also

  • ui/flowgraph/editor Reference - Related reference
  • Common Libraries Overview - Guide

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.

Flowgraph Editor

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