Garry's Mod Wiki

achievements.GetGoal

  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