- Documentation
- Server functions
- getPlayersInTeam
Function
getPlayersInTeam
Returns the players in a team.
Syntax
table getPlayersInTeam(team theTeam)Arguments
theTeamteam- The team.
Returns
A table of players.
Example
local police = getTeamFromName("Policja")
for _, cop in ipairs(getPlayersInTeam(police)) do
outputChatBox("Zgłoszenie: kradzież auta w Ganton", cop)
end