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

Monologue (Flowgraph Node)

- **Node Name:** `Monologue`

Overview

  • Node Name: Monologue
  • Category: once_f_duration
  • File: extensions/flowgraph/nodes/ui/monologue.lua

Shows a sequence of messages one after another using the ui_message toast system. Each message has its own duration. The node has a duration behaviour - it starts, plays through all messages, then finishes.

Pin Schema

Input Pins

PinTypeDefaultDescription
categorystring"flowgraph"Message category for the toast system
iconstring"error"Icon for the messages
message_1any-Message 1 to display
duration_1number5Duration for message 1
(dynamic)any / number-Additional message/duration pairs added via count

Dynamic Pins

The node supports a configurable count. For each index i, two pins are created:

  • message_<i> (any) - the message text
  • duration_<i> (number, default 5) - duration in seconds

Internals

FieldPurpose
self.countNumber of message slots
self.timeElapsed time since start
self.endTimeTotal duration of all messages combined
self.currentIndex of the currently displayed message

How It Works

  1. workOnce() - Resets time to 0 and sets duration state to 'started'.
  2. work() - Called each frame:
    • On first call, computes endTime by summing all durations.
    • If time >= endTime, sets duration state to 'finished'.
    • Otherwise, advances time by dtSim and iterates through messages:
      • Accumulates elapsed time per message.
      • When the current time falls within a message's window and it hasn't been shown yet, calls ui_message() with the message text, duration, category, and icon.
  3. drawCustomProperties() - Editor UI with an integer input to change the message count.
  4. updatePins(old, new) - Adds or removes message_<i> / duration_<i> pin pairs.

Serialization

  • _onSerialize() - Saves mode and count.
  • _onDeserialized() - Restores count and rebuilds pins via updatePins(1, count).

Lua Code Example

-- What the node does internally for each message:
ui_message("Watch out for the turn!", 5, "flowgraph", "error")

-- After 5 seconds, the next message appears:
ui_message("Great job!", 3, "flowgraph", "error")

Key Dependencies

  • ui_message() - BeamNG toast message function
  • Duration behaviour mixin - provides setDurationState() for started/finished lifecycle

See Also

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

Popup (Flowgraph Node)

- **Node Name:** `Popup`

Multi Description (Flowgraph Node)

- **Node Name:** `Multi Description`

On this page

OverviewPin SchemaInput PinsDynamic PinsInternalsHow It WorksSerializationLua Code ExampleKey DependenciesSee Also