Garry's Mod Wiki

Garry's Mod Wiki

  number Player:AccountID()

Description

Returns the player's AccountID part of their full SteamID.

Since this does not include other vital parts of the SteamID such as "Account Type" and "Account Instance", it should be avoided, as AccountIDs are finite, and can theoretically be the same for multiple valid accounts.

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

In a -multirun environment, this will return -1 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.

Returns

1 number
The AccountID of Player's SteamID.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...