achievements.IsAchieved

From GMod Wiki

Jump to: navigation, search
Function
Syntax achievements.IsAchieved( Number AchievementID )
Where is this used?
Description:
Returns if the local player has gotten the achievement.
Returns: Boolean Achieved
Part of Library: Achiv
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Achievements.IsAchieved]Achievements.IsAchieved [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints if you got the achievement
Used onNewerClient.png
Code
print("Did you get achievement number 7?, " .. achievements.IsAchieved(7))
OutputWhether you got the achievement or not.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox