OnSettingChange

From Multi Theft Auto: Wiki
Revision as of 20:20, 28 November 2010 by Snert (talk | contribs) (Created page with "__NOTOC__ {{Server event}} This event is triggered when resource setting has been changed. For instance, this event would trigger if you would edit the settings of the Race reso...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when resource setting has been changed. For instance, this event would trigger if you would edit the settings of the Race resource through the Admin panel.

Parameters

string setting, string oldValue, string newValue
  • setting: The setting which was changed. For instance: "*race.ghostmode"
  • oldValue: The previous value. Please note that this value is in JSON. To get a normal Lua value, use fromJSON
  • newValue: The new value. Also in JSON

Source

The source of this event is the root element.

Example

-- TODO

See Also

Server events


Event functions