Garry's Mod Wiki

achievements.GetDesc

  string achievements.GetDesc( number achievementID )

Description

Retrieves description of given achievement

Arguments

1 number achievementID
The ID of achievement to retrieve description of. Note: IDs start from 0, not 1.

Returns

1 string
Description of an achievement

Example

Will print achievement descriptions for all of your achievements into console

for i = 0, achievements.Count() - 1 do print( achievements.GetDesc( i ) ) end
Output: Prints achievement descriptions for all of your achievements into console.