Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetSteamID

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 20:33, 7 February 2017 by Sarynth (talk | contribs) (Added some reference links discussing steam id.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Function Description

unsigned GetSteamID( int iPlayerID )

Return player's steamID64


Type Name Description
int iPlayerID No Description Set


unsigned - userdata


If you need to handle the 64 bit SteamID in Lua, it may be helpful to convert it to a string with:

local steamId64 = tostring(PlayerResource:GetSteamID(PlayerID))

More information about the SteamID can be found here: