Garry's Mod Wiki

Revision Difference

Player:SteamID64#529655

<function name="SteamID64" parent="Player" type="classfunc"> <description> Returns the player's 64-bit SteamID aka CommunityID. See <page>Player:AccountID</page> for a shorter version of the SteamID and <page>Player:SteamID</page> for the normal version of the SteamID. ⤶ <warning>In singleplayer, this will return `no value` serverside. In a `-multirun` environment, this will return `no value` serverside for all "copies" of a player.</warning>⤶ ⤶ <bug issue="2614">In singleplayer, this will return `no value` serverside. In a `-multirun` environment, this will return `no value` serverside for all "copies" of a player.⤶ **This is fixed in the next update.**</bug>⤶ <note>For bots, this will return `90071996842377216` (equivalent to `STEAM_0:0:0`) for the first bot to join. For each additional bot, the number increases by 1. So the next bot will be `90071996842377217` (`STEAM_0:1:0`) then `90071996842377218` (`STEAM_0:0:1`) and so on. It returns `no value` for bots clientside.</note>⤶ It returns `no value` for bots clientside.</note>⤶ </description> <realm>Shared</realm> <rets> <ret name="" type="string">Player's 64-bit SteamID aka CommunityID.</ret> </rets> </function> <example> <description>Prints the 64bit SteamID of player</description> <code>print( Entity( 1 ):SteamID64() )</code> <output>64bit SteamID (about 20 digits)</output> </example>