> For the complete documentation index, see [llms.txt](https://mango-5m.gitbook.io/mango5m-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mango-5m.gitbook.io/mango5m-docs/resources/mango-admin/reference/commands.md).

# Commands

Everything you or a player can type.

## Staff

| Command      | Does                              |
| ------------ | --------------------------------- |
| `/admin`     | Opens the panel. Also **F10**     |
| `/adminmini` | Opens the mini menu. Also **F11** |

Both keybinds are registered as key mappings, so each person can rebind them in **Settings → Key Bindings** like any other.

```lua
Config.Command = 'admin'
Config.Keybind = 'F10'
Config.Mini = { command = 'adminmini', keybind = 'F11' }
```

## Players

| Command             | Does                                   |
| ------------------- | -------------------------------------- |
| `/report <message>` | Opens a report and the window with it  |
| `/report`           | Reopens the report window              |
| `/myreport`         | The same, for anyone who has forgotten |

`/report` keeps working **while the admin menu is stopped** — the watchdog registers it too, and holds the message until the panel is back.

## Console

Ordinary FXServer commands. The guard watches for these against the resources it protects:

| Command                              | What the guard does                                                                 |
| ------------------------------------ | ----------------------------------------------------------------------------------- |
| `stop <panel>`                       | Detects, recovers, records an incident                                              |
| `restart <panel>` / `ensure <panel>` | Allowed. Recorded as a restart                                                      |
| `refresh`                            | Recorded. Run this before restarting either resource if you added or removed a file |

## Exports

```lua
-- put somebody out from another resource: an anticheat, a jail script, your own commands
exports.mango_admin:CreateBan(target, opts)
exports.mango_admin:CreateKick(target, opts)
exports.mango_admin:RemoveBan(target, opts)   -- also: Unban

-- mugshots
exports.mango_admin:TakeMugshot(source)
exports.mango_admin:GetMugshot(who)
exports.mango_admin:GetMugshotTime(who)
exports.mango_admin:RefreshMugshots()

-- economy reporting
exports.mango_admin:RecordMoney(source, amount, reason, meta)
exports.mango_admin:RecordJobPayout(source, amount, job)
exports.mango_admin:RecordRobbery(source, amount, what)
exports.mango_admin:RecordShopSpend(source, amount, shop)
```
