<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Steam.GetPlayerSteamID_%28Civ5_API%29</id>
	<title>Steam.GetPlayerSteamID (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Steam.GetPlayerSteamID_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Steam.GetPlayerSteamID_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-11T07:34:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Steam.GetPlayerSteamID_(Civ5_API)&amp;diff=12684&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Steam.GetPlayerSteamID_(Civ5_API)&amp;diff=12684&amp;oldid=prev"/>
		<updated>2012-09-20T11:10:46Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|Steam}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Returns the Steam ID information for a specific Player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;table(&amp;#039;&amp;#039;&amp;#039;unknown&amp;#039;&amp;#039;&amp;#039; =&amp;gt; &amp;#039;&amp;#039;&amp;#039;unknown&amp;#039;&amp;#039;&amp;#039;) Steam.GetPlayerSteamID&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;{{Type5|PlayerID}} player&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returned Value&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Returns a table with the following fields:&lt;br /&gt;
::PlayerName&lt;br /&gt;
:Their current steam display name&lt;br /&gt;
::IsOnline&lt;br /&gt;
:Are they online?&lt;br /&gt;
::ID&lt;br /&gt;
:a 64-bit integer represented as a string pertaining to their ID.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|player:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The player&amp;#039;s Game ID, typically between 0 and #Players;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; class=&amp;quot;civ5-example&amp;quot;&amp;gt;&lt;br /&gt;
-- Print all player&amp;#039;s SteamIDs&lt;br /&gt;
for i,v in ipairs(Players) do&lt;br /&gt;
if(v:IsHuman() then&lt;br /&gt;
local steamID = Steam.GetPlayerSteamID(i);&lt;br /&gt;
print(string.format(&amp;quot;[%i] %s - %s&amp;quot;, i, steamID.PlayerName, steamID.ID);&lt;br /&gt;
else&lt;br /&gt;
print(string.format(&amp;quot;[%i] Computer&amp;quot;, i);&lt;br /&gt;
end&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|GetPlayerSteamID]]&lt;br /&gt;
[[Category:Civ5 Players API|GetPlayerSteamID]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>