> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-anticheat/console-commands.md).

# Console Commands

These only work from the server console or the txAdmin live console. Type `sbhelp` in the console for a quick reminder.

### `sb ban <serverId|license:xxx|ip> [seconds] <reason>`

Bans a player. Leave out the seconds for a permanent ban.

```
sb ban 5 Cheating                                  permanent, online player
sb ban 5 86400 Ban evasion                         24 hours
sb ban license:7d0a6eaf6225aeed097d7f223d22a8dead61c9b4 Modding
sb ban 203.0.113.7 3600 Griefing                   by IP address, 1 hour
```

A license or IP ban works while the player is offline. If the player is online, they are banned and kicked immediately.

### `sb unban <banId> [reason]`

Lifts a ban. The `SB-` prefix is optional.

```
sb unban SB-K4X9BM Appeal accepted
sb unban K4X9BM
```

### `sb bans`

Lists **active** bans (not unbanned and not expired), newest first.

### `sb kick <serverId> <reason>`

Kicks a connected player.

### `sb screenshot <serverId>`

Takes a screenshot of the player's screen and posts it to the screenshot webhook.

### `sb scan <serverId>`

Runs an OCR scan of the player's screen for cheat menu text. Needs the `screencapture` resource.

### `sb weaponscan`

Lists weapon models on your server that aren't in the weapon list yet. Run `sb weaponscan debug` if you use addon weapons.

### `sb trust`

Lists the trusted-resource bypasses that are active right now. See [Trusted Resources](/sb-scripts/sb-anticheat/trusted-resources.md).
