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

Create Button (Flowgraph Node)

- **Node Name:** `Create Button`

Overview

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

Creates a new UI button through the flowgraph button module and outputs its ID for use with other button nodes.

Pin Schema

Input Pins

PinTypeDefaultDescription
labelstring"Button"Displayed name of the button
activebooltrue(Hidden) Whether the button is active
ordernumber-(Hidden) Button order in the list (auto if empty)
stylestring"default"(Hidden) Button styling

Output Pins

PinTypeDescription
buttonIdnumberID of the created button

How It Works

  1. postInit() - Sets up hard templates for the style pin (currently just "default").
  2. workOnce() - Calls self.mgr.modules.button:addButton() with label, active, order, and style. Returns the button ID.

Key Dependencies

  • self.mgr.modules.button - the flowgraph button module that manages UI buttons.

Example Usage

-- Create a button, then use getButton or simpleButton to check clicks
local id = self.mgr.modules.button:addButton({
  label = "Start Race",
  active = true,
  order = 1,
  style = "default"
})

See Also

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

Vehicle Selector (Flowgraph Node)

- **Node Name:** `Vehicle Selector`

Get Button (Flowgraph Node)

- **Node Name:** `Get Button`

On this page

OverviewPin SchemaInput PinsOutput PinsHow It WorksKey DependenciesExample UsageSee Also