ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getAccountsBySerial

Function

getAccountsBySerial

ServerAccountsIdentical to MTA:SA

Returns the accounts used from the given Client ID.

Syntax

table getAccountsBySerial(string serial)

Arguments

serialstring
Client ID.

Returns

A table of accounts.

Example

addEventHandler("onPlayerJoin", root, function()
    for _, acc in ipairs(getAccountsBySerial(getPlayerSerial(source))) do
        outputServerLog(getPlayerName(source) .. " ma konto " .. getAccountName(acc))
    end
end)

See also