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

From Valve Developer Community
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: