player/GetByUniqueID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(accountid)
 
Line 6: Line 6:
 
|IsClass=No
 
|IsClass=No
 
|File=lua/includes/extensions/player.lua
 
|File=lua/includes/extensions/player.lua
|Line=45
+
|Line=59-L71
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 20:11, 25 May 2019

 player.GetByUniqueID( )

Description

Gets the player with the specified uniqueID (not recommended way to identify players).

WARNING

It is highly recommended to use player.GetByAccountID, player.GetBySteamID or player.GetBySteamID64 instead as this function can have collisions ( be same for different people ) while SteamID is guaranteed to unique to each player.

Arguments

string uniqueID

The Player:UniqueID to find the player by.

Returns

Player

Player if one is found, false otherwise.
Personal tools
Navigation