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)

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 Extensionsflowgraphnodesui

Popup (Flowgraph Node)

- **Node Name:** `Popup`

Overview

  • Node Name: Popup
  • Category: (once, singleActive)
  • File: extensions/flowgraph/nodes/ui/missionPopup.lua

Shows a modal popup that can only be dismissed by pressing a button. Commonly used for mission intro popups. Multiple popups queue sequentially.

Pin Schema

Input Pins

PinTypeHiddenDefaultDescription
flowflowno-Inflow for this node
resetflow (impulse)no-Resets the node to allow re-triggering
titlestring / tableno-Popup title
textstring / tableno-Popup body text
buttonTextstringyes"ui.scenarios.start.start"Text for the dismiss button

Output Pins

PinTypeDescription
flowflowFires when the button is pressed

Internals

FieldPurpose
self.openWhether the popup is currently displayed
self.doneWhether the popup has been dismissed
self._activeInternal active state flag

How It Works

  1. work() - Main loop:
    • If reset impulse is active: closes dialogue, resets all state and output pins.
    • If not done and flow is active: calls openDialogue().
    • If already done: returns early (once behaviour).
  2. openDialogue() - Builds popup data with title, text, and a single button. Triggers guihooks.trigger('introPopupMission', data).
  3. started() - Called from the UI button's Lua command. Closes dialogue, sets flow output to true, marks as done.
  4. closeDialogue() - Resets open and _active flags.
  5. _executionStopped() - Closes dialogue if open and resets state.

The button's click handler is a Lua string that calls back into the node:

core_flowgraphManager.getManagerGraphNode(mgrId, graphId, nodeId):started()

Lua Code Example

-- Equivalent guihooks call:
guihooks.trigger('introPopupMission', {
  title = "Welcome to the Race",
  text = "Complete 3 laps to win!",
  buttons = {
    {
      default = true,
      class = "main",
      label = "ui.scenarios.start.start",
      clickLua = 'core_flowgraphManager.getManagerGraphNode(1, 2, 3):started()'
    }
  }
})

Key Dependencies

  • guihooks.trigger('introPopupMission', data) - Mission intro popup UI
  • core_flowgraphManager.getManagerGraphNode() - Node callback from UI
  • core_input_bindings - Listed dependency

Previously Undocumented (Added by Audit)

  • C:buttonPushed(action) - Function handling buttonPushed logic
  • C:getCmd(action) - Function handling getCmd logic
  • C:onFilteredInputChanged(devName, action, value) - Function handling onFilteredInputChanged logic

See Also

  • Medal / Auto Medal (Flowgraph Node) - Related reference
  • Clear Messages (Flowgraph Node) - Related reference
  • Context Translation (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Mission End Screen (Flowgraph Node)

- **Node Name:** `Mission End Screen`

Monologue (Flowgraph Node)

- **Node Name:** `Monologue`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesPreviously Undocumented (Added by Audit)See Also