getAccountType
Client-side
 Server-side
 Shared
 OOP Syntax Help! I don't understand this!
- Method: account:getType(...)
Syntax
string getAccountType ( account theAccount )Required Arguments
- theAccount: An account you want to get info from.
Returns
- string: account type
Returns string containing the type (player, guest or console) of the account if the account is valid.
Code Examples
 server   
 This example adds command accountInfo that outputs provided account info.
addCommandHandler("accountInfo", function(player, cmd, accountName)    if (not accountName) then        outputChatBox("You have to provide an account's name to get info from!", player)        return    end
    local acc = getAccount(accountName)    if (not acc) then        outputChatBox("That account doesn't exist!", player)        return    end
    local accName = getAccountName(acc)    local accType = getAccountType(acc)    outputChatBox('Account name: '..accName..', type: '..accType, player)end)See Also
Account Functions
- addAccount
- getAccount
- copyAccountData
- getAccountByID
- getAccountData
- getAccountID
- getAccountIP
- getAccountName
- getAccountPlayer
- getAccountSerial
- getAccountType
- getAccounts
- getAccountsByData
- getAccountsByIP
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logOut
- logIn
- removeAccount
- setAccountData
- setAccountName
- setAccountPassword
- setAccountSerial
 
 