Garry's Mod Wiki

Garry's Mod Wiki

  string achievements.GetName( number achievementID )

Description

Retrieves the name of the given achievement.

Arguments

1 number achievementID
The ID of the achievement.

Returns

1 string
The name.

Example

Prints the name of every achievement into the console.

for i = 1, achievements.Count() - 1 do print( achievements.GetName( i ) ) end
Output:
Play Singleplayer Play Multiplayer Startup Millenium Secret Phrase Addict Map Loader Play Around War Zone Friendly Yes, I am the real garry! Marathon One Day One Week One Month Half Marathon Innocent Bystander Bad Friend Ball Eater Creator Popper Destroyer Menu User Bad Coder Procreator Dollhouse 10 Thumbs 100 Thumbs 1000 Thumbs Mega Upload

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

Last Parsed: Loading...