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

Function

getRuleValue

Returns a server rule's value.

Syntax

string getRuleValue(string key)

Arguments

keystring
Rule name.Not in MTA:SA

Differences from MTA:SA

  • In MTA:SA this function is client-side only.
  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

getRuleValue()

Returns

The value, or false.

Example

outputServerLog("Discord: " .. tostring(getRuleValue("discord")))

See also