- Documentation
- Server functions
- getAccountName
Function
getAccountName
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)