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 Checkbox

- **Node Name:** `im Checkbox`

Overview

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

Displays an interactive checkbox in an ImGui window with enable/disable support and programmatic set/unset.

Pin Schema

Input Pins

PinTypeDefaultDescription
enabledbooltrueWhether the checkbox is interactive (hidden, hardcoded)
setOnflow-Impulse to check the box (hidden)
setOffflow-Impulse to uncheck the box (hidden)
textany-Label text for the checkbox

Output Pins

PinTypeDescription
onflowActive when box is checked
offflowActive when box is unchecked
changedflow (impulse)Fires when state changes (hidden)
checkedboolCurrent checked state

Internals

Key Methods

MethodDescription
work()Handles programmatic set/unset, draws checkbox, updates outputs
_executionStarted()Initializes state from data.startState

Data Properties

PropertyDefaultDescription
data.startStatefalseInitial checked state

Disabled State

When enabled is false, the checkbox is wrapped in im.BeginDisabled() / im.EndDisabled(), making it visible but non-interactive.

How It Works

  1. Checks setOn/setOff impulse inputs to programmatically toggle state.
  2. If enabled is false, wraps the checkbox in disabled mode.
  3. Draws im.Checkbox(text, boolPtr) and checks if the user toggled it.
  4. Sets on/off flow outputs based on current state, and changed impulse if state changed.
  5. Outputs the boolean checked value.

Usage Example

-- Flowgraph:
-- [im Begin] → [im Checkbox (text="Enable Sound")]
--                 → (on)  → [Enable Sound System]
--                 → (off) → [Disable Sound System]
--                 → (changed) → [Log State Change]

-- Under the hood:
local val = im.BoolPtr(self.state)
if im.Checkbox("Enable Sound##42", val) then
  self.state = val[0]  -- user toggled
end

Key Dependencies

  • ui_imgui - ImGui bindings (Checkbox, BeginDisabled, EndDisabled)

See Also

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

ImGui Button

- **Node Name:** `im Button`

ImGui Color

- **Node Name:** `im Color`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsData PropertiesDisabled StateHow It WorksUsage ExampleKey DependenciesSee Also