Back to TPG

TPG.Stats.GetLeaderboard

S🏷️ Stats

Part of TPG namespace

TPG.Stats.GetLeaderboard(n)
View on GitHub|gamemode/systems/sv_stats.lua:311-328
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Top N by rating, over everyone ever recorded, not just who is connected. Duplicate display names are collapsed to a single row (highest rating first, so the best one survives): it keeps the same player from appearing more than once if older junk records exist under a stale key. Two genuinely different players sharing a name is rare enough that showing one of them in a top-N is an acceptable trade. shorter than n, including empty.

Parameters

NameTypeDescription
n?numberHow many rows.(default: 10)

Returns

TypeDescription
tableList of live record tables, highest rating first. May be

Examples

No examples available.

Used In

No usages found in the codebase.