ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setRuleValue

Function

setRuleValue

ServerServerIdentical to MTA:SA

Stores a server rule (a key-value pair, e.g. "discord" → "discord.gg/xyz").

Syntax

bool setRuleValue(string key, string value)

Arguments

keystring
Rule name.
valuestring
Value.

Returns

true on success.

Example

setRuleValue("discord", "discord.gg/mojserwer")
setRuleValue("jezyk", "PL")

Notes

State for scripts. The launcher's server list does not show rules yet.

See also