API ReferenceGE ExtensionsflowgraphnodesuiupdatedUI
EndScreen Lap Times (Flowgraph Node)
- **Node Name:** `EndScreen Lap Times`
Overview
- Node Name:
EndScreen Lap Times - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/updatedUI/endScreenLapTimesPanel.lua
Displays vehicle lap times on the end screen by extracting timing data from race state.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain inflow |
race | table | Race data (contains states keyed by vehicle ID) |
vehId | number | Vehicle ID to display times for (optional, defaults to player vehicle) |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow (chain) | Chain outflow |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Resolves vehicle, extracts race state, adds lap times to UI |
How It Works
- Passes
flowthrough. - Resolves the vehicle: uses
vehIdpin if provided, otherwisegetPlayerVehicle(0). - Looks up the vehicle's state from
race.states[vehId]. - Calls
mgr.modules.ui:addLaptimesForVehicle(state)to render the lap times panel.
Usage Example
-- Flowgraph chain:
-- [EndScreen Begin] → (build) → [EndScreen Lap Times] → [Screen Finish]
-- ↑ race (from race manager node)
-- ↑ vehId (optional)
-- The race data table structure:
-- race = {
-- states = {
-- [vehicleId] = { laps = {...}, bestLap = ..., totalTime = ... }
-- }
-- }Key Dependencies
mgr.modules.ui:addLaptimesForVehicle()- renders the lap times panelscenetree.findObjectById()- resolves vehicle by IDgetPlayerVehicle(0)- fallback to player vehicle
See Also
- EndScreen Begin (Flowgraph Node) - Related reference
- EndScreen Drift Stats (Flowgraph Node) - Related reference
- EndScreen Results (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide