> For the complete documentation index, see [llms.txt](https://docs.otherplanet.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherplanet.dev/scripts/op-mechanic-v2/tutorials/how-to-add-player-to-mechanic-admin.md).

# How to add player to Mechanic Admin

/mechanicadmin is gated the same way as other OTHERPLANET admin panels: ACE -> identifier whitelist → framework rank.

### Option 1 - ACE (recommended)

In `server.cfg`:

```
add_ace group.admin opmechanic.admin allow
```

Restart server, then run `/mechanicadmin` in-game.

### Option 2 - Identifier whitelist

Edit `config/MainConfig.lua`:

```lua
Config.AdminPanelPlayers = {
    ['license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] = true,
    -- ['discord:000000000000000000'] = true,
}
```

Use license / discord / character / citizenid identifiers from txAdmin.

### Option 3 - Framework rank

```lua
Config.RanksPermissions = {
    AdminPanelPlayers = {
        ['esx'] = { 'superadmin', 'admin', 'mod' },
        ['qbcore'] = { 'god', 'admin' },
        ['qbox'] = { 'god', 'admin' },
    },
}
```

{% hint style="info" %}
Command name defaults to `mechanicadmin` (`config/AdminConfig.lua` → `Config.MechanicAdmin.command`).
{% endhint %}
