Player
From GMod Wiki
Library
Represents a set of functions that can be used to find all players, or just players by their entity index.
Note: Players can use most functions from entities, such as GetPos() (so stuff like ply:GetPos() will work)
Functions
player.GetAll
player.GetByID
player.GetByUniqueID
player.GetBots
player.GetHumans
Object
Represents a player's properties. The Player object is a child of Entity.