Garry's Mod Wiki

GM:OnAchievementAchieved

  GM:OnAchievementAchieved( Player ply, number achievement )

Description

Called when a player has achieved an achievement. You can get the name and other information from an achievement ID with the achievements library.

Arguments

1 Player ply
The player that earned the achievement
2 number achievement
The index of the achievement