Garry's Mod Wiki


  Player player.GetByUniqueID( string uniqueID )


We advise against using this. It may be changed or removed in a future update. Use player.GetBySteamID64, player.GetBySteamID or player.GetByAccountID to get a player by a unique identifier instead.

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

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.
Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.


1 string uniqueID
The Player:UniqueID to find the player by.


1 Player
Player if one is found, false otherwise.