GetPlayerSteamId
The player’s Steam ID, as their game reports it.
The SteamID64 ("76561198...", a string: the number is too long for a Lua number) of the Steam account their game runs
under - a name to show, a profile to link, a list to check. Their game’s word, not proven: a modified game can send anyone’s,
so it is no password (GetPlayerUid is the id a player cannot fake). "" when their game is not on Steam (the Microsoft
Store’s) or the player keeps it to themselves.
Syntax
Section titled “Syntax”GetPlayerSteamId(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string - the SteamID64; "" when none
Example
Section titled “Example”Log(GetPlayerName(pid) .. " https://steamcommunity.com/profiles/" .. GetPlayerSteamId(pid))See also
Section titled “See also”GetPlayerUid · GetPlayerName · GetPlayerHwid · the Players group of the index
