Garry's Mod Wiki

Garry's Mod Wiki

  number achievements.GetGoal( number achievementID )

Description

Retrieves progress goal of given achievement

Arguments

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

Returns

1 number
Progress goal of an achievement

Example

Will print achievement progress and goals for all of your achievements into console

for i = 0, achievements.Count() - 1 do print( achievements.GetCount( i ) .. " / " .. achievements.GetGoal( i ) ) end
Output: Prints achievement progress and goals for all of your achievements 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...