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

Function

getAccountType

ServerAccountsIdentical to MTA:SA

Returns the account type: "guest" (not logged in) or "player".

Syntax

string getAccountType(account theAccount)

Arguments

theAccountaccount
The account.

Returns

The type.

Example

if getAccountType(getPlayerAccount(player)) == "guest" then
    outputChatBox("Zaloguj się, żeby zapisać postęp.", player)
end