Garry's Mod Wiki

player.GetByID

player.GetByID

  Player player.GetByID( number connectionID )

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

1 number connectionID
The connection ID to find the player by.

Returns

1 Player
Player if one is found, nil otherwise

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 42
Generate Html 5
SaveChanges (1) 5
Render Body 0
Render Sidebar 7