ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onSettingChange

Event

onSettingChange

ServerResourcesIdentical to MTA:SA

A resource setting changed (set or the admin panel).

Handler

addEventHandler("onSettingChange", root, function(setting, oldValue, newValue) ... end)

Parameters

settingstring
Setting name.
oldValuestring
Old value (JSON).
newValuestring
New value (JSON).

Source

source is the resource root.

Example

addEventHandler("onSettingChange", root, function(setting, old, new)
    outputServerLog(setting .. ": " .. tostring(old) .. " -> " .. tostring(new))
end)

See also