Garry's Mod Wiki

Player:SteamID64

Player:SteamID64

string Player:SteamID64()

Description

Returns the player's 64-bit SteamID aka CommunityID.

See Player:AccountID for a shorter version of the SteamID and Player:SteamID for the normal version of the SteamID.

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

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.

Returns

1 string
Player's 64-bit SteamID aka CommunityID.

Example

Prints the 64bit SteamID of player.

print( Entity( 1 ):SteamID64() )
Output: 64bit SteamID (about 20 digits)

Special Pages


Wikis

?

Render Time: 63ms

DB GetPage 45
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 6