Skip to content

achievement

name

Type

string


description

Type

string


is_unlocked

Type

function

Description

This function will check if an achievement is unlocked. If so, it will return the timestamp of when the achievement was unlocked. Otherwise, false.

Returns

  • number|boolean

unlock

Type

function

Description

This function will unlock an achievement. This will not allow you to unlock hard-coded achievements. This function only works on achievements added via achievements:add.


revoke

Type

function

Description

This will revoke an unlocked achievement, allowing you to unlock it again. This is good for testing or resetting your achievements.dat without deleting the file itself.