Garry's Mod Wiki

user_data_downloaded

Description

Called when the Achievement Manager received the steam user stat data.
As soon as this is called, all achievement data should be valid
Trying to access any achievement data before this may return in inaccurate data.

Examples

Example

This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.

gameevent.Listen( "user_data_downloaded" ) hook.Add( "user_data_downloaded", "user_data_downloaded_example", function( data ) -- Called when the steam user stat data was received. We now can safely use any achievement.* function. end )