getAccountSerial
Client-side
Server-side
Shared
OOP Syntax Help! I don't understand this!
- Method:account:getSerial(...)
- Variable: .serial
Syntax
string|false getAccountSerial ( account theAccount )Required arguments
- theAccount: The account to get serial from.
Returns
Returns string containing the serial, the string is empty if the account was never used. Returns false if invalid arguments were specified.
- string|false: account's serial.
Code Examples
server
This example adds command getaccserial that outputs the given account's serial in the chat box.
addCommandHandler("getaccserial", function(player, cmd, accountName) if (accountName) then local account = getAccount(accountName) -- get account from name if (account) then outputChatBox("Serial: " .. getAccountSerial(account), player) -- get serial else outputChatBox("Account not found", player) end endend)See Also
Account Functions
- addAccount
- copyAccountData
- getAccount
- getAccountByID
- getAccountData
- getAccountID
- getAccountIP
- getAccountName
- getAccountPlayer
- getAccounts
- getAccountsByData
- getAccountsByIP
- getAccountsBySerial
- getAccountSerial
- getAccountTypeNew
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountName
- setAccountPassword
- setAccountSerialNew