Project M
  • FAQ
  • Asset Escrow
  • pm_queue
    • Features
    • Installation
    • Config.lua
    • Verification Themes
    • Queue Themes
    • Common Issues
  • pm_vpark
    • Features
    • Installation
    • Config.lua
Powered by GitBook
On this page
  1. pm_queue

Config.lua

Config = {
    Verification = 3, -- 1 = Simple | 2 = Modern | 3 = Advanced
    Queue = 3,        -- 1 = Simple | 2 = Modern | 3 = Advanced

Themes as seen on Verification Themes & Queue Themes


 Discord = {
        id = "DISCORD_SERVER_ID", -- Discord Server ID
        botToken = "YOUR_BOT_TOKEN", --- Bot Token
        whitelist = true, -- Enable or disable whitelist
        whitelistRoles = { -- Role ID's that are allowed to join the server if using discord whitelist
            "123456789012345678", -- Role ID 1
            "987654321098765432", -- Role ID 2
        },
        priorityRoles = { 
            ["333333333333333333"] = 10, -- Role ID with priority 10
            ["444444444444444444"] = 5,  -- Role ID with priority 5
        },
    },
  • id: The Server's Discord ID.

  • botToken: The bot's token used to authenticate and interact with Discord.

  • whitelistRoles : Players must have a specific Discord role to join the server.

    • Example: Users with role "1309348868642832424" must have it to enter the queue.

  • priorityRoles: Defines different levels of queue priority based on Discord roles.

    • "1309348868642832424" has a priority of 1000 (probably admins, staff, or VIPs).

    • "1329131881517678603" has a priority of 1 (likely a lower-priority role).

Priority System Explanation:

  • Higher numbers mean a higher chance of being placed at the front of the queue.

  • A player with priority 1000 will get in much faster than one with priority 1.

Connection = {
    stackPrio = false, -- Combine all rows/roles of prio together or only use the row/role with the highest amount of points?
    JoinDelay = 60000, -- Don't recommend lowering this, if anything increase
  • stackPrio = false:

    • true: If a player has multiple priority roles, their priority points stack.

    • false: Only the highest priority role is considered.

  • JoinDelay = 60000:

    • 60 seconds (60000 ms) delay before allowing a new connection.

    • Prevents spam joins and rapid queue refreshes.

        Crash = {
            enabled = true,
            priority = 10,
            revokeTime = 300,
        },
  • enabled = true: Crash handling is active.

  • priority = 10: Players who crash get a priority of 10 when reconnecting.

  • revokeTime = 300: After 5 minutes (300 seconds), their crash priority is revoked.

    • This ensures players who crash don't exploit priority indefinitely.

    API = {
        cache = true,               -- Enable or disable caching
        cacheTimeout = 120,         -- Seconds. Amount of time that user info from Discord requests will be cached for
        Cooldown = 3,               -- Seconds. Time each individual player will wait before connecting in order to prevent rate limiting and spamming.
    },
  • cache = true:

    • Enables caching of Discord data (faster lookups instead of requesting every time).

  • cacheTimeout = 120:

    • Discord data is cached for 120 seconds (2 minutes) before refreshing.

  • Cooldown = 3:

    • Each player must wait 3 seconds before attempting to connect again to prevent spam connections.

PreviousInstallationNextVerification Themes

Last updated 2 months ago