setQueuePriority
Server
Sets an account's priority in a full server's queue. A higher priority goes first.
bool setQueuePriority(string accountId, int priority)
Parameters
| Name | Type | Description |
|---|---|---|
| accountId | string | The MYMP account id, the id of getPlayerAccount or the accountId of onPlayerQueue. |
| priority | int | The priority. 0 clears the account's priority. |
Returns
true once the priority is kept. An empty id gives a warning and false.
Example
local vips = { ["c3f1a2"] = 10, ["9b7e04"] = 5 }
for accountId, priority in pairs(vips) do
setQueuePriority(accountId, priority)
end