> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get queue count

> Get the count of players currently in queue.

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

```lua Export theme={null}
-- Returns a number
exports["easy_allowlist"]:getQueueCount()
```

## Example

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

<Note>
  You can add this code in `sv_integrations.lua` of the script or in any other server-side Lua file.
</Note>


## Related topics

- [Queue](/easy-allowlist/server/queue/index.md)
- [Get queue info](/easy-allowlist/server/queue/get-queue-info.md)
- [Get total item amount](/jaksam-inventory/functions/client/get-total-item-amount.md)
- [Item added](/jaksam-inventory/hooks/on-item-added.md)
