Garry's Mod Wiki

Revision Difference

team.NumPlayers#515956

<function name="NumPlayers" parent="team" type="libraryfunc"> <description>Returns the amount of players in a team.</description> <realm>Shared</realm> <args> <arg name="teamIndex" type="number">The team index.</arg> </args> <rets> <ret name="" type="number">playerCount</ret> </rets> </function> ⤶ {{Example⤶ | Description = Prints the amount of players in a player's team⤶ | Code = print(team.NumPlayers(ply:Team()))| Output = The number of players in ply's team.}}⤶ <example>⤶ <description>Prints the amount of players in a player's team</description>⤶ <code>print(team.NumPlayers(ply:Team()))</code>⤶ <output>The number of players in ply's team.</output>⤶ ⤶ </example>