Garry's Mod Wiki

Revision Difference

team.GetName#511762

<function name="GetName" parent="team" type="libraryfunc"> <description>Returns the name of the team.</description> <realm>Shared</realm> <args> <arg name="teamIndex" type="number">The team index.</arg> </args> <rets> <ret name="" type="string">The team name. If the team is not defined, returns an empty string.</ret> </rets> </function> <example> <description>Get's the teams string name.</description> <code>print(team.GetName(Entity(1):Team()))</code> </example>