> For the complete documentation index, see [llms.txt](https://tgiann.gitbook.io/tgiann/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgiann.gitbook.io/tgiann/scripts/tgiann-emotes/admin-commands.md). Agents can also search and read this documentation through its [MCP server](https://tgiann.gitbook.io/tgiann/~gitbook/mcp).

# Admin Commands

Admin commands need the ace `command.<command>` (for example `command.emoteadmin`) or pass the `IsAdmin` check of server/editable.lua.

## emoteadmin

Opens the admin panel: animations, previews, settings and the preview studio. The name is `config.adminCommand` in config.lua (a restart is needed after changing it). See [Admin Panel](https://tgiann.gitbook.io/tgiann/scripts/tgiann-emotes/guides/admin-panel.md).

```
/emoteadmin
```

***

## emotecontext

Turns the debug view of [Animation Suggestions](https://tgiann.gitbook.io/tgiann/scripts/tgiann-emotes/guides/animation-suggestions.md) on or off: draws the seats, walls, rails, edges, vehicles, animals and people the scan finds around you, and where you would be placed.

```
/emotecontext
```

***

## Player commands

| Command                 | What it does                                                                                   | Config                                                         |
| ----------------------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| `/e <name> [variation]` | Plays the animation with that command name; `variation` picks the prop texture variation.      | Name and on / off: Settings > Keys and commands > Play command |
| `/freestyle [style]`    | Starts or stops the freestyle dance, `style` picks the dance style.                            | Settings > Freestyle dance                                     |
| `/sit [n]`              | Sits at the best spot around (seat, wall top, roof edge, else the ground); `n` picks the pose. | Settings > Animation suggestions                               |
| `/lean [n]`             | Leans on the nearest wall, car side or rail; `n` picks the pose.                               | Settings > Animation suggestions                               |
