Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 8
Render Body 0
Render Sidebar 12