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

Function

getAccountPlayer

ServerAccountsIdentical to MTA:SA

Returns the player logged into this account. An account can be logged in by only one player at a time.

Syntax

player getAccountPlayer(account theAccount)

Arguments

theAccountaccount
The account.

Returns

The player or false.

Example

local player = getAccountPlayer(getAccount("jan"))
if player then
    outputChatBox("Masz nową wiadomość.", player)
end