Garry's Mod Wiki

achievements.GetName

  string achievements.GetName( number achievementID )

Description

Retrieves name of given achievement

Arguments

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

Returns

1 string
Name of an achievement

Example

Will print all achievement names into console

for i = 0, achievements.Count() - 1 do print( achievements.GetName( i ) ) end
Output: Prints all achievement names into console