meska
Metrics-Skill-Achievement Framework (MESKA) The hooks setups.
Functions
Escape(str)
View source »The escaping wrapper.
Parameters
-
str
string
The string.
Returns
-
any
function The escape gateway.
Exec(q, cb)
View source »The execution wrapper.
Parameters
-
q
string
The query.
-
cb
func
Callback Function.
Returns
-
any
function The query gateway.
Exp(skill)
View source »Gets player skill exp.
Parameters
-
skill
string
The skill.
Returns
-
any
number The exp.
Level(skill)
View source »Gets player skill level.
Parameters
-
skill
string
The skill.
Returns
-
any
number The level.
dateFromTime(time)
View source »Converts time to human-readable date.
Parameters
-
time
The timestamp.
Returns
-
any
bool Whether result is valid.
hasAchievementsProp(ply)
View source »Checks if player has achievement prop.
Parameters
-
ply
Player entity.
Returns
-
any
[table|false] Achievements table or false.
hasCustombonusProp(ply)
View source »Checks if player has custombonus prop.
Parameters
-
ply
Player entity.
Returns
-
any
[table|false] Custombonus table or false.
hasSkillsProp(ply)
View source »Checks if player has skill prop.
Parameters
-
ply
Player entity.
Returns
-
any
[table|false] Skills table or false.
hasSkillsProp(ply)
View source »Checks if player has skill prop.
Parameters
-
ply
Player entity.
Returns
-
any
[table|false] Skills table or false.
isPlayer(ply)
View source »Checks for a valid player.
Parameters
-
ply
Player entity.
Returns
-
any
bool If the entity is a Player.
memory.alloc()
View source »Allocates the memory provider.
Returns
-
any
number provider index.
memory.free(idx)
View source »Frees the memory provider.
Parameters
-
idx
number
The provider index.
meska.providers.load(gmfolder)
View source »Loads all MESKA providers.
Parameters
-
gmfolder
string
The gamemode (base) folder.
mysql.load()
View source »Loads the mysql provider.
Returns
-
any
number provider index.
mysql.unload(idx)
View source »Unloads the mysql provider.
Parameters
-
idx
number
The provider index.
saveAll()
View source »Executes cached database-queries.
tpl.append(key, value)
View source »The append wrapper.
Parameters
-
key
string
The key.
-
value
The value.
tpl.delete(key)
View source »The deletion wrapper.
Parameters
-
key
string
The key.
tpl.lastIndex()
View source »Gets the last index.
Returns
-
any
number The index.
tpl.prepend(key, value)
View source »The prepend wrapper.
Parameters
-
key
string
The key.
-
value
The value.
tpl.pull(key)
View source »The query wrapper.
Parameters
-
key
string
The key.
Returns
-
any
any The value.
tpl.put(key, value)
View source »The insertion wrapper.
Parameters
-
key
string
The key.
-
value
The value.
tpl.putQuery(key, query)
View source »The insertion wrapper for queries.
Parameters
-
key
string
The query key.
-
query
The query.
validResult(result)
View source »Checks if player has achievement prop.
Parameters
-
result
The result.
Returns
-
any
bool Whether the result is valid.
Tables
meska.conf.defaults
This function is deprecated and may be removed in a future version.
This will be moved to a separate skill-file.
Default levels and exp at which the player starts.
Fields
-
[general]
-
maxLvl
meska.conf.guides
This function is deprecated and may be removed in a future version.
This will be moved to a separate skill-file.
Default guides.
Fields
-
[fishing]
-
title
-
version
-
template
-
sectionA
-
text
-
icon
meska.conf.perks
This function is deprecated and may be removed in a future version.
This will be moved to a separate skill-file.
Default perks.
Fields
-
[fishing]
-
text
meska.conf.rods
This function is deprecated and may be removed in a future version.
This will be moved to a separate skill-file. Fishing Skill config
Skill specific configuration for:
Fields
-
[cityrp_rod]
-
[rod_steel]
-
[rod_carbon]
meska.conf.skills
This function is deprecated and may be removed in a future version.
This will be moved to a separate skill-file.
[skill] = { [type] = { lvl, exp, ... } } The exp is being used to calculate players skill exp, and level based on dailybonus and percentage of skill level
Fields
-
[general]
-
exp
-
highlight
-
requirements
Fields
memory.load
View source »Loads the memory provider. Wrapper function for memory.alloc.
memory.unload
View source »Unloads the memory provider. Wrapper function for memory.free.
tpl.escapeGateway
View source »The escape gateway.
tpl.queryGateway
View source »The query gateway.