Garry's Mod Wiki

Garry's Mod Wiki

  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

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

Last Parsed: Loading...