Garry's Mod Wiki

Garry's Mod Wiki

  number achievements.GetGoal( number achievementID )

Description

Retrieves the end progress goal of the given achievement.

Arguments

1 number achievementID
The ID of the achievement.

Returns

1 number
The end progress goal.

Example

Prints your current progress and the goal for every achievement into the console.

for i = 1, achievements.Count() - 1 do print( achievements.GetName( i ), achievements.GetCount( i ) .. " / " .. achievements.GetGoal( i ) ) end

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...