Back to TPG

TPG.Stats.GetRating

S🏷️ Stats

Part of TPG namespace

TPG.Stats.GetRating(ply)
View on GitHub|gamemode/systems/sv_stats.lua:291-294
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

A player's rating, or 1000 if they have no record. Safe for anyone, including bots -- unrated players read as the starting rating rather than nil, which is what lets the scramble weigh a full team without special-casing newcomers.

Parameters

NameTypeDescription
plyPlayer

Returns

TypeDescription
number

Examples

No examples available.

Used In

No usages found in the codebase.