RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Medal / Auto Medal (Flowgraph Node)Clear Messages (Flowgraph Node)Context Translation (Flowgraph Node)ConvertUnit (Flowgraph Node)Set UI Timer / Corner Timer (Flowgraph Node)Custom Button TEST (Flowgraph Node)Custom UI Layout (Flowgraph Node)End Screen (Flowgraph Node)End Stats (Flowgraph Node)Fade From Black (Flowgraph Node)Fade Sequence (Flowgraph Node)Fade To Black (Flowgraph Node)Flash Message (Flowgraph Node)Generic Mission Text (Flowgraph Node)Get Gamestate (Flowgraph Node)Show Editor (Flowgraph Node)Hide Game UI (Flowgraph Node)Message (Flowgraph Node)Mission End Screen (Flowgraph Node)Popup (Flowgraph Node)Monologue (Flowgraph Node)Multi Description (Flowgraph Node)On Bigmap Poi (Flowgraph Node)On Bigmap State Change (Flowgraph Node)Set UI Race Checkpoints (Flowgraph Node)Set UI Race Laps (Flowgraph Node)Set UI Race Recovery (Flowgraph Node)RT Message (Flowgraph Node)Select Buttons (Flowgraph Node)Set UI Layout (Flowgraph Node)Show Apps (Flowgraph Node)Show Monitor (Flowgraph Node)Start Screen (Flowgraph Node)Clear Goals (Flowgraph Node)Tasklist Message (Flowgraph Node)Tasklist Task (Flowgraph Node)Three Element Select (Flowgraph Node)Vehicle Selector (Flowgraph Node)
ImGui DialogueImGui Simple Text BoxImGui Vehicle Selector
ImGui BeginImGui ButtonImGui CheckboxImGui ColorImGui EndImGui NumberImGui SeparatorImGui Text

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 ReferenceGE Extensionsflowgraphnodesuiimguielemental

ImGui Number

- **Node Name:** `im Number`

Overview

  • Node Name: im Number
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/ui/imgui/elemental/imNumbers.lua

Displays a numeric input widget in an ImGui window. Supports multiple input modes: Int, Float, SliderInt, SliderFloat, DragInt, DragFloat.

Pin Schema

Input Pins

PinTypeDefaultDescription
setflow-When active, resets value to setVal (hidden)
setValnumber0Initial / reset value (hidden, hardcoded)
minnumber0Minimum for sliders/drags (hidden, hardcoded)
maxnumber10Maximum for sliders/drags (hidden, hardcoded)
stepnumber1Step for inputs, speed for drags (hidden, hardcoded)
formatstring"%0.2f"Printf format for floats (hidden, hardcoded)
powernumber1Power curve for float sliders (hidden, hardcoded)
textany-Label for the number input

Output Pins

PinTypeDescription
valuenumberCurrent numeric value
changedflow (impulse)Fires when the value changes (hidden)

Internals

Input Modes

ModeImGui FunctionDescription
Intim.InputIntInteger text input with step buttons
Floatim.InputFloatFloat text input with step
SliderIntim.SliderIntInteger slider (min–max)
SliderFloatim.SliderFloatFloat slider (min–max)
DragIntim.DragIntInteger drag input
DragFloatim.DragFloatFloat drag input

The mode is selected via drawCustomProperties() in the editor and serialized with the node.

Key Methods

MethodDescription
work()Initializes value, handles set input, draws the appropriate ImGui widget, clamps to min/max
drawCustomProperties()Mode selection combo box
_onSerialize(res)Saves mode
_onDeserialized(data)Restores mode

How It Works

  1. Value initializes to setVal on first frame or when set flow is active.
  2. Draws the appropriate ImGui widget based on the selected mode.
  3. Clamps the result to min/max if set.
  4. Outputs the current value and fires changed impulse when the user modifies it.

Usage Example

-- Flowgraph:
-- [im Begin] → [im Number (text="Speed", mode=SliderFloat, min=0, max=100)]
--                → (value) → [Set Vehicle Speed]
--                → (changed) → [Log Change]

-- Under the hood (SliderFloat mode):
local val = im.FloatPtr(50)
if im.SliderFloat("Speed##42", val, 0, 100, "%0.2f", 1) then
  -- value changed
end

Key Dependencies

  • ui_imgui - ImGui bindings (InputInt, InputFloat, SliderInt, SliderFloat, DragInt, DragFloat)

See Also

  • im Begin (Flowgraph Node) - Related reference
  • im Button (Flowgraph Node) - Related reference
  • im Checkbox (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

ImGui End

- **Node Name:** `im End`

ImGui Separator

- **Node Name:** `im Separator`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsInput ModesKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also