Garry's Mod Wiki

Garry's Mod Wiki

  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 the data when it arrives.
Function argument(s):
1 string name - The player's 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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...