Garry's Mod Wiki

team.GetScore

number team.GetScore( number teamIndex )

Description

Returns the score of the team.

Arguments

1 number teamIndex
The team index.

Returns

1 number
score

Example

Get's the teams score, can be a number 1 or 2 depending on how many teams you've set up.

print(team.GetScore(ply:Team()),team.GetScore(1))
Output: 1

Page Links


Special Pages


Wikis

?

Render Time: 86ms

DB GetPage 52
Generate Html 3
SaveChanges (1) 16
Render Body 0
Render Sidebar 13