M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
accountIdstringThe MYMP account id, the id of getPlayerAccount or the accountId of onPlayerQueue.
priorityintThe 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

See also