GetPlayers
Everyone who passed the handshake, in join order.
Syntax
Section titled “Syntax”GetPlayers()Returns
Section titled “Returns”table - a list of pids, {} on an empty server
Example
Section titled “Example”for _, pid in ipairs(GetPlayers()) do SendClientMessage(pid, COLOUR_YELLOW, "The round starts in ten seconds.")endSee also
Section titled “See also”GetPlayerCount · IsPlayerInWorld · GetMaxPlayers · the Players group of the index
