Get the Steam user name for any given user ID.


GML Code Example


Argument Description
steamID The unique Steam ID for a user.

Returns: Real


This function can be used to retrieve the user name (screen name) for any specific user ID. You give the user ID then the function returns a unique async ID value which can be used to check the details correctly in the Steam Async event. This event will have the async_load DS map which will be populated with the following key/value pairs:

  • "id" - The async ID returned by the function that triggered the event

  • "event_type" - The string "user_persona_name"

  • "steamid"" - The Steam ID value used to get the user name.

  • "persona_name" - The user name for the given Steam ID


GML Code Example

request = steam_get_user_persona_name(global.UGC_UserID);

The above code will request the user name of the user ID stored in the global variable "UGC_UserID", storing the returned value in a variable for parsing in the Async Event.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here