Connection queue for FiveM
set sv_debugqueue true # prints debug messages to console
set sv_displayqueue true # shows queue count in the server name '[count] server name'
AddEventHandler("queue:playerJoinQueue", function(src, setKickReason)
setKickReason("No, you can't join")
CancelEvent()
end)
Any identifier should work, it will use ip's if it can't find any. There is also support for SteamID32's.
exports.connectqueue:AddPriority(string id, integer power)
exports.connectqueue:AddPriority(table ids)
exports.connectqueue:RemovePriority(string id)
exports.connectqueue:AddPriority("steam:110000#####", 50)
exports.connectqueue:AddPriority("ip:127.0.0.1", 50)
exports.connectqueue:AddPriority("STEAM_0:1:########", 50)
local prioritize = {
["STEAM_0:1:########"] = 10,
["ip:127.0.0.1"] = 20,
["steam:110000#####"] = 100
}
exports.connectqueue:AddPriority(prioritize)
exports.connectqueue:RemovePriority("STEAM_0:1:########")