getQueuePriority
Server
Reads an account's priority in a full server's queue.
int getQueuePriority(string accountId)
Parameters
| Name | Type | Description |
|---|---|---|
| accountId | string | The MYMP account id, the id of getPlayerAccount or the accountId of onPlayerQueue. |
Returns
The priority, or 0 if the account has none.
Example
addEventHandler("onPlayerQueue", root, function(accountId, name, tag)
outputServerLog(name .. "#" .. tag .. " queued with priority " .. getQueuePriority(accountId))
end)