> For the complete documentation index, see [llms.txt](https://docs.lenoscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenoscripts.com/scripts/lenoreports/commands.md).

# Commands

Player and staff commands, keybinds, and permissions.

Defaults come from `Config.UI` and can be changed in `config.lua`.

## Player & staff menus

| Command    | Default key | Who     | Description             |
| ---------- | ----------- | ------- | ----------------------- |
| `/report`  | `F6`        | Players | Open player report menu |
| `/reports` | `F7`        | Staff   | Open staff reports menu |

Commands are registered from `Config.UI.playerCommand` / `staffCommand`. Keys use `RegisterKeyMapping`.

For the full player and staff workflow, see the [User Guide](/scripts/lenoreports/user-guide.md).

## Staff notify key

| Command                    | Default key                        | Description                                        |
| -------------------------- | ---------------------------------- | -------------------------------------------------- |
| `leno_reports_open_notify` | `G` (`Config.StaffNotify.openKey`) | Opens staff UI focused on the last notified report |

The shortcut needs a previous report notification and enabled staff notifications. With the default settings, switch **On Duty** in the staff sidebar first. The duty switch controls notification eligibility and the roster; it does not grant staff permissions.

## Debug

| Command                         | Access                     | Description                                          |
| ------------------------------- | -------------------------- | ---------------------------------------------------- |
| `reports_debugperms [serverId]` | Restricted (ACE / console) | Prints ACE + framework permission debug for a player |

## Permissions

Staff access requires **one** of:

1. ACE permission `reports.admin` (or your `Config.Permissions.admin` value)
2. QBCore/QBox admin / god permission
3. ESX group `admin` or `superadmin`

Example `server.cfg`:

```cfg
add_ace group.admin reports.admin allow
add_principal identifier.license:YOUR_LICENSE group.admin
```

Customize further with `ReportsHooks.IsStaff` / `CanOpenStaff` / `CanOpenPlayer` — see [Exports and Events](/scripts/lenoreports/exports-and-events.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.lenoscripts.com/scripts/lenoreports/commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
