M MY Multiplayer: Wiki
Side
Kind

getQueuePriority

Server

Reads an account's priority in a full server's queue.

int getQueuePriority(string accountId)

Parameters

NameTypeDescription
accountIdstringThe 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)

See also