> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/easy-allowlist/server/queue/get-queue-count.md).

# Get count of players currently in queue

Use the following export if you need to get **the count of players currently in queue**

## Export

```lua
-- Returns a number
exports["easy_allowlist"]:getQueueCount()
```

## Example

```lua
RegisterCommand("queuecount", function(source, args)
    local queueCount = exports["easy_allowlist"]:getQueueCount()
    print("Queue count: " .. queueCount)
end, false)
```

**You can add this code in sv\_integrations.lua of the script or in any other server side lua file**
