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

Function

getAccountName

ServerAccountsIdentical to MTA:SA

Returns the account name.

Syntax

string getAccountName(account theAccount)

Arguments

theAccountaccount
The account.

Returns

The name.

Example

addEventHandler("onPlayerLogin", root, function(_, account)
    outputChatBox(getPlayerName(source) .. " zalogował się jako " .. getAccountName(account))
end)

See also