core.libraries.meska.helpers
Metrics-Skill-Achievement Framework (MESKA) The helper functions.
- Sharedmeska.clearTable(tbl)Source ☍
-
Empties a table. Native approach to table.Empty
Parameters
- tblanyThe table to clear
- Servermeska.dateFromTime(time) → string|osdateSource ☍
-
Converts time to human-readable date.
Parameters
- timeanyThe timestamp.
Returns
- string|osdateWhether result is valid.
- Servermeska.hasAchievementsProp(ply) → booleanSource ☍
-
Checks if player has achievement prop.
Parameters
- plyanyPlayer entity.
Returns
- booleanAchievements table or false.
- Servermeska.hasCustombonusProp(ply) → booleanSource ☍
-
Checks if player has custombonus prop.
Parameters
- plyanyPlayer entity.
Returns
- booleanCustombonus table or false.
- Clientmeska.hasSkillsProp(ply) → booleanSource ☍
-
Checks if player has skill prop.
Parameters
- plyanyPlayer entity.
Returns
- booleanSkills table or false.
- Sharedmeska.isPlayer(ply) → booleanSource ☍
-
Checks for a valid player.
Parameters
- plyanyPlayer entity.
Returns
- booleanIf the entity is a Player.
- Servermeska.validResult(result) → booleanSource ☍
-
Checks if player has achievement prop.
Parameters
- resultanyThe result.
Returns
- booleanWhether the result is valid.