achievements.IsAchieved

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

Contents

Description

Used in GMod 12 in the achievements menu to show the user if they have unlocked certain achievements.

Arguments

number AchievementID

Internal Achievement ID number

Returns

boolean

Returns true if the given achievementID is achieved.

Examples

Example

Prints true if you got the achievement.

print("Did you get achievement number 7?, " .. achievements.IsAchieved(7))

Output:

boolean true (assuming you have unlocked achievement 7)
Personal tools
Navigation