Garry's Mod Wiki

steamworks.RequestPlayerInfo

steamworks.RequestPlayerInfo

  steamworks.RequestPlayerInfo( string steamID64, function callback )

Description

Requests information of the player with SteamID64 for later use with steamworks.GetPlayerName.

Arguments

1 string steamID64
The 64bit Steam ID of player.
2 function callback
A callback function with only 1 argument - string name.

Example

Gets and prints the steam name of the local player.

steamworks.RequestPlayerInfo( LocalPlayer():SteamID64(), function( steamName ) print( steamName ) end )
Output: The local player's name.

Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 24
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 7