onAccountCreate
Client-side
Server-side
Shared
This event is triggered every time an account is created
Parameters
account theAccount
- theAccount: An account element that was created
Source
element: The source of this event is the root element.
Canceling
This event cannot be canceled.
Code Examples
server
This example prints a message every time new account is created.
addEventHandler('onAccountCreate', root, function(acc) local accName = getAccountName(acc) local accType = getAccountType(acc) or '' iprint('Registered a new '..accType..' account: '..accName)end)
See Also
Account Events
- onAccountCreate
- onAccountRemove
- onAccountDataChange
Account Functions
- addAccount
- getAccount
- getAccountByID
- copyAccountData
- getAccountData
- getAccountID
- getAccountName
- getAccountIP
- getAccountPlayer
- getAccountType
- getAccountSerial
- getAccountsByData
- getAccounts
- getAccountsByIP
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- logIn
- isGuestAccount
- logOut
- removeAccount
- setAccountData
- setAccountName
- setAccountPassword