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

End Stats (Flowgraph Node)

- **Node Name:** `End Stats`

Overview

  • Node Name: End Stats
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/ui/endStats.lua

Gathers end-of-scenario statistics for use with the End Screen node. Provides a configurable number of stat entries, each with label, points, and max points.

Pin Schema

Input Pins

PinTypeTable TypeDescription
statDatatableendStatsExisting stat data to append to (hidden)

Dynamic Input Pins (per stat)

For each stat index i (1 to count):

PinTypeDescription
label_istring/tableLabel or translation object for stat i
points_inumberPoints earned for stat i
maxPoints_inumberMaximum points for stat i

Output Pins

PinTypeTable TypeDescription
statDatatableendStatsAssembled stat data array

Internals

Key Methods

MethodDescription
work()Iterates stats 1..count, builds each {label, points, maxPoints, relativePoints}, appends to output
drawCustomProperties()Editor UI with count input to add/remove stat slots
updatePins(old, new)Creates or removes dynamic pins when stat count changes
_onSerialize(res)Saves count
_onDeserialized(res)Restores count and rebuilds pins

Computed Fields

Each stat entry also gets relativePoints = points * 100 / maxPoints when both values are present.

How It Works

  1. In the editor, set the Count to determine how many stat entries are available.
  2. Each stat creates 3 input pins: label_N, points_N, maxPoints_N.
  3. On each frame, work() collects all stat values into an array.
  4. If an existing statData table is connected to the input, new stats are appended to it (allows chaining multiple End Stats nodes).
  5. The output statData is connected to the End Screen node's stats input.

Usage Example

-- With count = 2, the node creates pins:
--   label_1, points_1, maxPoints_1
--   label_2, points_2, maxPoints_2
--
-- Output table looks like:
{
  { label = "Accuracy", points = 85, maxPoints = 100, relativePoints = 85 },
  { label = "Time",     points = 50, maxPoints = 60,  relativePoints = 83.33 },
}

Key Dependencies

  • Used as input provider for the End Screen node (endStats table type)

See Also

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

End Screen (Flowgraph Node)

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

Fade From Black (Flowgraph Node)

- **Node Name:** `Fade From Black`

On this page

OverviewPin SchemaInput PinsDynamic Input Pins (per stat)Output PinsInternalsKey MethodsComputed FieldsHow It WorksUsage ExampleKey DependenciesSee Also