achievements.IsAchieved
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Achievements.IsAchieved]Achievements.IsAchieved [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints if you got the achievement |
|---|---|
| Used on | |
| Code | print("Did you get achievement number 7?, " .. achievements.IsAchieved(7)) |
| Output | Whether you got the achievement or not. |