Garry's Mod Wiki

Garry's Mod Wiki

  Player or nil 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 or nil
Player if one is found, nil otherwise.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...