achievements.GetName

From Garry's Mod
Jump to: navigation, search
 achievements.GetName( )

Contents

Description

Retrieves name of given achievement

Arguments

number achievementID

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

Returns

string

Name of an achievement

Examples

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
Personal tools
Navigation