Login Guards
Bundles can register callbacks to run when new clients are attempting to join the server. Before a client is able to join, they must pass through all defined login guards.
local function onClientJoinedQueue(id, setStatus, proceed, cancel) proceed("") -- Either pass an empty string, or a URL to a loading screenend
on_client_joined_queue(onClientJoinedQueue)
Handlers can use the setStatus
function to send a custom status message to a joining client. A handler must call either proceed
or cancel
to allow or deny the client from joining, respectively. Failure to do so will eventually result in a timeout.