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

Function

getAccountID

ServerAccountsIdentical to MTA:SA

Returns the account's permanent number. Assigned on the first request and never changes afterwards.

Syntax

int getAccountID(account theAccount)

Arguments

theAccountaccount
The account.

Returns

The account number.

Example

addEventHandler("onPlayerLogin", root, function(_, account)
    outputChatBox("Twoje ID konta: " .. getAccountID(account), source)
end)