getAccountsBySerial
Client-side
 Server-side
 Shared
 OOP Syntax Help! I don't understand this!
- Method: Account.getAllBySerial(...)
Syntax
table|false getAccountsBySerial ( string serial )Required Arguments
- serial: The serial to get accounts from.
Returns
- table|false: accounts table
Returns table containing the accounts associated with specified serial. Returns false if invalid arguments were specified.
Code Examples
 server   
 This example adds command getAccounts that outputs the number of accounts a player has in the chat box.
addCommandHandler("getAccounts", function (player, cmd)  local serial = getPlayerSerial(player)  local accounts = getAccountsBySerial(serial)  outputChatBox("You have " .. #accounts .. " accounts.", 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
 
 