player.GetByID

From Garry's Mod
Jump to: navigation, search
 player.GetByID( )

Description

Gets the player with the specified connection ID.

Connection ID can be retrieved via gameevent.Listen events.

For a function that returns a player based on their Entity:EntIndex, see Entity.
For a function that returns a player based on their Player:UserID, see Player.

Arguments

number connectionID

The connection ID to find the player by.

Returns

Player

Player if one is found, nil otherwise
Personal tools
Navigation