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