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)
Create Button (Flowgraph Node)Get Button (Flowgraph Node)Get Multiple Buttons (Flowgraph Node)Set Button Property (Flowgraph Node)Set Multiple Buttons Property (Flowgraph Node)Simple Button (Flowgraph Node)Simple Multiple Buttons (Flowgraph Node)

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 Extensionsflowgraphnodesuibuttons

Simple Button (Flowgraph Node)

- **Node Name:** `Simple Button`

Overview

  • Node Name: Simple Button
  • Category: once_instant
  • File: extensions/flowgraph/nodes/ui/buttons/simpleButton.lua

All-in-one button node that creates a button and monitors its click state. Combines the functionality of Create Button + Get Button in a single node. Supports auto-hiding after the first click.

Pin Schema

Input Pins

PinTypeDefaultDescription
hideWhenDonebool-If true, hides the button after first click
labelstring"Button"Displayed name
ordernumber-(Hidden) Button order
stylestring"default"(Hidden) Button styling

Output Pins

PinTypeDescription
buttonIdnumber(Hidden) ID of the created button
clickedflow(Impulse) Fires once when button is clicked
usedflow(Hidden) Fires after first click
unusedflow(Hidden) Fires while not yet clicked

Legacy Pin Mapping

Old NameNew Name
completeused
incompleteunused

How It Works

  1. _executionStarted() - Resets hiddenAfterDone and hiddenAfterReset flags.
  2. workOnce() - Creates the button via self.mgr.modules.button:addButton().
  3. work() - Each frame: un-hides if previously reset, reads click state, and auto-hides after completion if hideWhenDone is set.
  4. onNodeReset() - Hides the button when the node resets (e.g., looping).

Example Usage

-- Simplest button usage: one node does it all
-- Connect 'clicked' to whatever should happen when pressed
-- Set hideWhenDone=true to remove the button after use

See Also

  • Create Button (Flowgraph Node) - Related reference
  • Get Button (Flowgraph Node) - Related reference
  • Get Multiple Buttons (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Set Multiple Buttons Property (Flowgraph Node)

- **Node Name:** `Set Multiple Buttons Property`

Simple Multiple Buttons (Flowgraph Node)

- **Node Name:** `Simple Multiple Buttons`

On this page

OverviewPin SchemaInput PinsOutput PinsLegacy Pin MappingHow It WorksExample UsageSee Also