# Commands usage

### Usage

All commands can be used either in game by server admins or directly from server console

### Add allowlist

`/add_allowlist identifier/requestId`

The parameter can be either an identifier **or** a request ID.

| Parameter  | Type    | Description                                                                                                                                                          |
| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | string  | The player **main** identifier (can be the steam hex, the rockstar license or the Discord ID). Be sure to use the main identifier you decided in the script settings |
| requestId  | integer | The ID of the request. This is the ID shown to players after they send the allowlist request                                                                         |

#### Example

`/add_allowlist 7b1261c1ae07dr156af762fcb1bec11a403b9413`

### Remove allowlist

`/remove_allowlist identifier`

The parameter **must** be the main identifier of the player

| Parameter  | Type   | Description                                                                                                                                                          |
| ---------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | string | The player **main** identifier (can be the steam hex, the rockstar license or the Discord ID). Be sure to use the main identifier you decided in the script settings |

#### Example

`/remove_allowlist 7b1261c1ae07dr156af762fcb1bec11a403b9413`

### Set queue priority

`/set_queue_priority identifier/playerId priority`

The **first** parameter can be a main identifier **or** a player ID (if the player is online)

| Parameter  | Type    | Description                                                                                                                                                          |
| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | string  | The player **main** identifier (can be the steam hex, the rockstar license or the Discord ID). Be sure to use the main identifier you decided in the script settings |
| playerId   | integer | The server ID of the player                                                                                                                                          |
| priority   | integer | The priority of the player. Higher number = more priority                                                                                                            |

#### Example

`/set_queue_priority 7b1261c1ae07dr156af762fcb1bec11a403b9413 15`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.jaksam-scripts.com/easy-allowlist/commands-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
