get all players||doc135769

September 20, 2022

Format

 Game.GetAllPlayers() 
  • The class to which the function belongs:Game

Description

Get an array of all players of the game


Value Returned

type Description
table player list


Code Samples

for id, player in pairs(Game.GetAllPlayers()) do
    print(id, player.name)
end