# commands

moh-boombox includes one server-side command for admins.

## Admin Commands

`/stopallboombox`

**Admin Only**

Stops all active boombox sounds server-wide, resets the active radio table, closes any open boombox UIs, and sends a confirmation notification to the admin who ran it.

## Permission Setup

The admin check uses `Config.IsAdmin`. By default it relies on your framework's role system.

### ESX — default behaviour

Players with ESX group `admin` or `superadmin` can run the command automatically.

### QBCore — default behaviour

Players with QBCore permission `admin` or `god` can run the command automatically.

### ACE Permissions (any framework)

```lua
-- config.lua Config.IsAdmin = function(source) return IsPlayerAceAllowed(source, 'moh-boombox.admin') end
```

```bash
# server.cfg add_ace group.admin moh-boombox.admin allow
```


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-boombox/commands.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.
