Global/Player

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Func
 
{{Func
 
|Description=Returns the player with the matching {{ClassFunction|Player|UserID}}.
 
|Description=Returns the player with the matching {{ClassFunction|Player|UserID}}.
 +
 +
For a function that returns a player based on their {{ClassFunction|Entity|EntIndex}}, see {{GlobalFunction|Entity}}.<br/>
 +
For a function that returns a player based on their connection ID, see {{LibraryFunction|player|GetByID}}.<br/>
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No

Revision as of 02:47, 15 August 2015

 Player( )

Description

Returns the player with the matching Player:UserID.

For a function that returns a player based on their Entity:EntIndex, see Entity.
For a function that returns a player based on their connection ID, see player.GetByID.

Arguments

number playerIndex

The player index.
Personal tools
Navigation