Back to TPG

TPG.GetTeamData

S🏷️ Teams

Part of TPG namespace

TPG.GetTeamData(teamId)
View on GitHub|gamemode/config/sh_teams.lua:100-102
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Look up a team's display entry. Never returns nil: an unrecognised id falls back to the TEAM_UNASSIGNED entry, so callers can read .name/.color off the result without guarding.

Parameters

NameTypeDescription
teamIdnumber

Returns

TypeDescription
tableThe matching entry from `TPG.Teams`.

Examples

No examples available.

Used In

No usages found in the codebase.