Garry's Mod Wiki

Revision Difference

steamworks.RequestPlayerInfo#511982

<function name="RequestPlayerInfo" parent="steamworks" type="libraryfunc">⤶ <description>Requests information of the player with SteamID64 for later use with <page>steamworks.GetPlayerName</page>.</description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="steamID64" type="string">The 64bit Steam ID of player.</arg>⤶ <arg name="callback" type="function">A callback function with only 1 argument - &lt;page&gt;string&lt;/page&gt; name.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Gets and prints the steam name of the local player</description>⤶ <code>⤶ steamworks.RequestPlayerInfo( LocalPlayer():SteamID64(), function(steamName)⤶ print( steamName )⤶ end )⤶ </code>⤶ <output>The local player's name</output>⤶ ⤶ </example>