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

Event

onAccountDataChange

ServerAccountsIdentical to MTA:SA

Account data changed (setAccountData).

Handler

addEventHandler("onAccountDataChange", root, function(account, key, value) ... end)

Parameters

accountaccount
The account.
keystring
The key.
valuemixed
The previous value.

Source

source is root.

Example

addEventHandler("onAccountDataChange", root, function(account, key)
    outputServerLog(getAccountName(account) .. ": zmiana " .. key)
end)

See also