ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPlayersInTeam

Function

getPlayersInTeam

ServerPlayersIdentical to MTA:SA

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