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

Set UI Race Laps (Flowgraph Node)

- **Node Name:** `Set UI Race Laps`

Overview

  • Node Name: Set UI Race Laps
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/ui/raceLaps.lua
  • Author: BeamNG

Sets the UI race laps display to show the current and maximum lap count. Clears the display when no value is provided.

Pin Schema

Input Pins

PinTypeDescription
curnumberCurrent lap. If not set, clears the app
maxnumberMaximum number of laps

How It Works

  1. work() - Called every frame:
    • If cur is set:
      • Triggers guihooks.trigger('RaceLapChange', {current, count}).
      • Sets generic mission data via ui_apps_genericMissionData.setData() with:
        • title: "missions.missions.general.lap"
        • txt: "cur / max" formatted string
        • category: "raceLaps"
        • style: "text"
        • order: 110
    • If cur is nil:
      • Triggers guihooks.trigger('RaceLapClear').
      • Clears the generic mission data for category "raceLaps".

Lua Code Example

-- Show lap 2 of 5:
guihooks.trigger('RaceLapChange', { current = 2, count = 5 })
ui_apps_genericMissionData.setData({
  title = "missions.missions.general.lap",
  txt = "2 / 5",
  category = "raceLaps",
  style = "text",
  order = 110,
})

-- Clear lap display:
guihooks.trigger('RaceLapClear')
ui_apps_genericMissionData.setData({
  category = "raceLaps",
  clear = true,
})

Key Dependencies

  • guihooks.trigger('RaceLapChange', ...) - Updates the lap counter HUD
  • guihooks.trigger('RaceLapClear') - Resets the lap counter HUD
  • ui_apps_genericMissionData.setData() - Generic mission data display system

See Also

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

Set UI Race Checkpoints (Flowgraph Node)

- **Node Name:** `Set UI Race Checkpoints`

Set UI Race Recovery (Flowgraph Node)

- **Node Name:** `Set UI Race Recovery`

On this page

OverviewPin SchemaInput PinsHow It WorksLua Code ExampleKey DependenciesSee Also