[ script:connectqueue] SCRIPT ERROR: @connectqueue/shared/sh_queue.lua:32: attempt to index a nil value (global โConfigโ)
[ script:connectqueue] > fn (@connectqueue/shared/sh_queue.lua:32)
Can you also add a export to check players current role in game so when needed we can check their perms again to do certain stuff ^^ that would be really cool honestly
The ConnectQueue resource now features a handy export called GetPlayerRole. This export allows you to easily fetch the role of any player in the queue. Itโs particularly useful for integrating role-based permissions or custom features within your server.
Example Usage:
-- Using player src (server ID)
local role, points = exports.connectqueue:GetPlayerRole(1) -- assuming '1' is a valid player src
if role then
print("Player's Role: " .. role)
print("Role Points: " .. points)
else
print("Role not found or invalid player src.")
end
-- Using Discord ID
local role, points = exports.connectqueue:GetPlayerRole("discord:320015606071951360")
if role then
print("Player's Role: " .. role)
print("Role Points: " .. points)
else
print("Role not found or invalid Discord ID.")
end
Priority Bot Update
New Command: /checkplayer
The Priority Bot has been enhanced with a new command, /checkplayer. This command is perfect for quickly checking a userโs current status, including their role and queue position.
Command Syntax:
/checkplayer user:@Username
This addition is especially useful for admins and moderators who need to monitor player status efficiently.