> 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-info.md).

# Get queue info

Use the following export to get the data of the players who are currently in queue (nickname, identifier, priority, etc.)

## Export

```lua
-- Returns a table
exports["easy_allowlist"]:getPlayersInQueue()
```

## Example

```lua
RegisterCommand("queueinfo", function(source, args)
    local queueInfo = exports["easy_allowlist"]:getPlayersInQueue()
    print(json.encode(queueInfo, { indent = true }))
end, false)
```

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