CityRP Documentation Repository

core.libraries.meska.helpers

Metrics-Skill-Achievement Framework (MESKA) The helper functions.

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

  1. string|osdateWhether result is valid.
Servermeska.hasAchievementsProp(ply) → booleanSource ☍

Checks if player has achievement prop.

Parameters

  • plyanyPlayer entity.

Returns

  1. booleanAchievements table or false.
Servermeska.hasCustombonusProp(ply) → booleanSource ☍

Checks if player has custombonus prop.

Parameters

  • plyanyPlayer entity.

Returns

  1. booleanCustombonus table or false.
Clientmeska.hasSkillsProp(ply) → booleanSource ☍

Checks if player has skill prop.

Parameters

  • plyanyPlayer entity.

Returns

  1. booleanSkills table or false.
Sharedmeska.isPlayer(ply) → booleanSource ☍

Checks for a valid player.

Parameters

  • plyanyPlayer entity.

Returns

  1. booleanIf the entity is a Player.
Servermeska.validResult(result) → booleanSource ☍

Checks if player has achievement prop.

Parameters

  • resultanyThe result.

Returns

  1. booleanWhether the result is valid.