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

Function

getAccountByID

ServerAccountsIdentical to MTA:SA

Returns the account with the given number (getAccountID).

Syntax

account getAccountByID(int id)

Arguments

idint
Account number.

Returns

The account or false.

Example

local acc = getAccountByID(1)
if acc then outputServerLog("Pierwsze konto: " .. getAccountName(acc)) end