Garry's Mod Wiki

Garry's Mod Wiki

Description

Called when a player makes progress on an achievement.

Only called clientside for the player who made progress.

Members

string achievement_name
the name of the achievement.
number cur_val
amount of steps toward achievement
number max_val
total amount of steps in achievement

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( "achievement_event" ) hook.Add( "achievement_event", "achievement_event_example", function( data ) local achievement_name = data.achievement_name // the name of the achievement. local cur_val = data.cur_val // amount of steps toward achievement local max_val = data.max_val // total amount of steps in achievement // Called when a player makes progress on an achievement. end )

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 four times a day. Edits and history are not available.

Last Parsed: Loading...