CityRP Documentation Repository

core.libraries.meska.config

Metrics-Skill-Achievement Framework (MESKA) The configuration file.

Functions

meska.database.checkedQueryGateway(q, cb) → anySource ☍

Run a query whose callback needs to know whether it failed.

Parameters

  • qstringThe SQL query.
  • cbfun(ok: boolean, result: any, err: string|nil)Called with success, the rows or last insert id, and the error when it failed.

Returns

  1. anyWhatever DB_MAIN:RunChecked returns.
meska.database.escapeGateway(str)Source ☍

Define gateway for database escaping

Parameters

  • strany
meska.database.queryGateway(q, cb)Source ☍

Define gateway for database quries

Parameters

  • qany
  • cbany

Tables

meska.conf.defaultsSource ☍

Default levels and exp at which the player starts.

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

meska.conf.guidesSource ☍

Default guides.

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

meska.conf.perksSource ☍

Default perks.

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

meska.conf.rodsSource ☍

Skill specific configuration for:

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file. Fishing Skill config

meska.conf.skillsSource ☍

[skill] = { [type] = { lvl, exp, ... } } The exp is being used to calculate players skill exp, and level based on dailybonus and percentage of skill level

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

meska.database.tablesSource ☍

Configure database tables

Fields

meska.cacheSource ☍

Register cache provider

meska.cache.enabledSource ☍

Enable caching

meska.conf.gmfolderSource ☍

GM Folder

meska.databaseSource ☍

Register database provider