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

Medal / Auto Medal (Flowgraph Node)

- **Node Name:** `Medal`

Overview

  • Node Name: Medal
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/ui/autoMedal.lua

Automatically determines a medal tier (wood/bronze/silver/gold/platinum) based on a numeric score and configurable thresholds.

Pin Schema

Input Pins

PinTypeDefaultDescription
pointsnumber-The player's score
bronzenumber50Threshold for bronze medal
silvernumber85Threshold for silver medal
goldnumber100Threshold for gold medal
platiniumnumber125Threshold for platinum medal
ascendingbooltrue(Hidden) If true, higher points = better medal
woodTextstring-Text for wood (no medal) tier
bronzeTextstring-Text for bronze tier
silverTextstring-Text for silver tier
goldTextstring-Text for gold tier

Output Pins

PinTypeDescription
medalstringMedal name: "wood", "bronze", "silver", "gold", or "platinium"
bronzebool(Hidden) True if at least bronze
silverbool(Hidden) True if at least silver
goldbool(Hidden) True if at least gold
platiniumbool(Hidden) True if at least platinum
textstringThe text attached to the achieved medal tier
nextScorenumberScore needed for the next medal tier
nextMedalstringName of the next medal tier
passedboolTrue if bronze or better
completedboolTrue if platinum achieved
failedboolTrue if no medal (wood)

How It Works

  1. work() - Iterates through medal tiers in order (bronze → silver → gold → platinum).
  2. For each tier, compares points against the threshold using >= (ascending) or <= (descending).
  3. The highest passing tier becomes the output medal. Falls back to "wood" if none pass.
  4. Sets passed, completed, and failed flags based on the result.
  5. Calculates nextScore and nextMedal for progress feedback.

Notes

  • The spelling "platinium" (with extra 'i') is used throughout - match this in your code.
  • ascending = true (default) means higher scores are better.
  • Medal text pins allow attaching custom messages per tier for UI display.

Example Usage

-- Points: 90, Thresholds: bronze=50, silver=85, gold=100, platinium=125
-- Result: medal="silver", passed=true, completed=false, failed=false
-- nextMedal="gold", nextScore=100

See Also

  • Clear Messages (Flowgraph Node) - Related reference
  • Context Translation (Flowgraph Node) - Related reference
  • ConvertUnit (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Vec3 (Flowgraph Node)

- **Node Name:** `Vec3`

Clear Messages (Flowgraph Node)

- **Node Name:** `Clear Messages`

On this page

OverviewPin SchemaInput PinsOutput PinsHow It WorksNotesExample UsageSee Also