Module core.libraries.meska.helpers
Metrics-Skill-Achievement Framework (MESKA)
The helper functions.
Module Overview
Functions
| meska.isPlayer(ply) | Checks for a valid player. |
| meska.clearTable(tbl) | Empties a table. |
| meska.hasSkillsProp(ply) | Checks if player has skill prop. |
| meska.hasSkillsProp(ply) | Checks if player has skill prop. |
| meska.hasAchievementsProp(ply) | Checks if player has achievement prop. |
| meska.hasCustombonusProp(ply) | Checks if player has custombonus prop. |
| meska.validResult(result) | Checks if player has achievement prop. |
| meska.dateFromTime(time) | Converts time to human-readable date. |
- meska.isPlayer(ply)
-
Checks for a valid player.
Parameters:
- ply Player entity.
Returns:
-
bool If the entity is a Player.
- meska.clearTable(tbl)
-
Empties a table. Native approach to table.Empty
Parameters:
- tbl The table to clear
Returns:
-
void
- meska.hasSkillsProp(ply)
-
Checks if player has skill prop.
Parameters:
- ply Player entity.
Returns:
-
[table|false] Skills table or false.
- meska.hasSkillsProp(ply)
-
Checks if player has skill prop.
Parameters:
- ply Player entity.
Returns:
-
[table|false] Skills table or false.
- meska.hasAchievementsProp(ply)
-
Checks if player has achievement prop.
Parameters:
- ply Player entity.
Returns:
-
[table|false] Achievements table or false.
- meska.hasCustombonusProp(ply)
-
Checks if player has custombonus prop.
Parameters:
- ply Player entity.
Returns:
-
[table|false] Custombonus table or false.
- meska.validResult(result)
-
Checks if player has achievement prop.
Parameters:
- result The result.
Returns:
-
bool Whether the result is valid.
- meska.dateFromTime(time)
-
Converts time to human-readable date.
Parameters:
- time The timestamp.
Returns:
-
bool Whether result is valid.