Player:UniqueID
Description
We advise against using this. It may be changed or removed in a future update.
Use Player:SteamID64, Player:SteamID or Player:AccountID to uniquely identify players instead.
This function has collisions, where more than one player has the same UniqueID. It is highly recommended to use Player:AccountID, Player:SteamID or Player:SteamID64 instead, which are guaranteed to be unique to each player.
Returns a 32 bit integer that remains constant for a player across joins/leaves and across different servers. This can be used when a string is inappropriate - e.g. in a database primary key.
In Singleplayer, this function will always return 1.