Garry's Mod Wiki

Revision Difference

Player:AccountID#551315

<function name="AccountID" parent="Player" type="classfunc"> <description> Returns the player's AccountID aka SteamID3. (`[U:1:AccountID]`) 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 be the same for multiple valid accounts.⤶ See <page>Player:SteamID</page> for the text representation of the full SteamID. See <page>Player:SteamID64</page> 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.⤶ <note>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. It will return `no value` clientside for bots.</note> </description> <realm>Shared</realm> <rets> <ret name="" type="number">The AccountID of Player's SteamID.</ret> </rets> </function>