OnAccountRemove

From Multi Theft Auto: Wiki
Revision as of 10:02, 26 May 2024 by Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22470|This event is triggered every time an account is removed}} ==Parameters== <syntaxhighlight lang="lua"> account theAccount </syntaxhighlight> *'''theAccount:''' An account element that was removed ==Source== The source of this event is the root element. ==Canceling== This event cannot be canceled. ==Example== This example prints a messa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BETA: NEW FEATURE (BUILD: 1.6.0 r22470)
This event is triggered every time an account is removed

Parameters

account theAccount
  • theAccount: An account element that was removed

Source

The source of this event is the root element.

Canceling

This event cannot be canceled.

Example

This example prints a message every time new account is created.

addEventHandler('onAccountRemove', root, function(acc)
    local accName = getAccountName(acc)
    local accType = getAccountType(acc) or 'Unknown'
    iprint('An account has been removed! Type: '..accType..', name: '..accName)
end)

See Also

Server events


Event functions

Shared