Garry's Mod Wiki


  number Player:AccountID()


Returns the player's AccountID aka SteamID3. ([U:1:AccountID])

See Player:SteamID for the text representation of the full SteamID. See Player:SteamID64 for a 64bit representation of the full SteamID.

Unlike other variations of SteamID, SteamID3 does not include the "Account Type" and "Account Instance" part of the SteamID.

In a -multirun environment, this will return no value for all "copies" of a player because they are not authenticated with Steam.

For bots this will return values starting with 0 for the first bot, 1 for the second bot and so on.


1 number
The AccountID of Player's SteamID.