Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetSteamID: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Note | This page is automatically generated. Any changes may be overwritten}} Category:Dota2Function Category:CDOTA_PlayerResource == Function Description == '''...")
 
m (clean up, added deadend tag)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Note | This page is automatically generated.  Any changes may be overwritten}}
{{Dead end|date=January 2024}}
[[Category:Dota2Function]]
[[Category:CDOTA_PlayerResource]]


== Function Description ==
== Function Description ==


 
''' unsigned GetSteamID( int ''iPlayerID'' ) '''
''' unsigned GetSteamID(int ''iPlayerID'') '''


''Return player's steamID64''
''Return player's steamID64''


== Parameters ==
== Parameters ==
Line 25: Line 20:
== Returns ==
== Returns ==


''unsigned'' - No Description Set
''unsigned'' - userdata
 
== Notes ==
If you need to handle the 64 bit SteamID in Lua, it may be helpful to convert it to a string with:
<source lang="lua">local steamId64 = tostring(PlayerResource:GetSteamID(PlayerID))</source>
 
More information about the SteamID can be found here:
* https://developer.valvesoftware.com/wiki/SteamID
* http://whatsmysteamid.azurewebsites.net/
 
[[Category:Dota2Function]]
[[Category:CDOTA_PlayerResource]]

Latest revision as of 09:33, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

Function Description

unsigned GetSteamID( int iPlayerID )

Return player's steamID64

Parameters

Type Name Description
int iPlayerID No Description Set

Returns

unsigned - userdata

Notes

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: