- Documentation
- Server events
- onAccountDataChange
Event
onAccountDataChange
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)