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

Page Links


Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 3
Generate Html 7
SaveChanges (1) 17
Render Body 0
Render Sidebar 13