> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-police/commands.md).

# Commands

Every CAS Advanced Police & Law System command: who may use it, its arguments and what it does, plus the admin test kit and the old vorp\_police and rsg-lawman command names.

[Back to the guide](/script-documentation/cas-police/cas-advanced-police-and-law-system.md)

Rename any command in `Config.Commands` (an empty string turns it off). The names below are the defaults. `ID` is the player's server id. Every check is made on the server, so a player who may not use a command is told why.

"Lawman" means a player whose job belongs to an office in `config/offices.lua`. "On duty" applies when the matching `Config.Duty.requireFor...` switch is on (all are on by default). Admins pass every rank and duty check (see [Installation](https://code-after-sex.gitbook.io/script-documentation/cas-police/pages/xoH3LhOUJLp6zXqFqto2#id-6.-admins)).

## Main commands

| Command      | Who may use it                                    | Arguments                    | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ------------ | ------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `/mdt`       | Lawmen on duty, bounty hunters, admins            | `[hunter]`                   | Opens the records book. Bounty hunters get the hunter's board. `/mdt hunter` opens the hunter's board for an admin (or a hunter). Not registered when `Config.Book.openMode = 'item'`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `/desk`      | Boss ranks, admins (built-in society only)        | none                         | Opens the marshal's desk. Must be used at a desk point of the office, or anywhere if the office lists no desks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `/onduty`    | Lawmen                                            | none                         | Goes on duty. With `stationsEnabled = true`, only at a station of your own office.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `/offduty`   | Lawmen                                            | none                         | Goes off duty, anywhere                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `/badge`     | Lawmen on duty, admins                            | `[adjust]`                   | `/badge` pins or takes off the badge. `/badge adjust` opens the adjust screen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `/jail`      | Lawmen on duty with the `jail` permission, admins | `ID MINUTES [jail] [reason]` | Sends a player to jail. The minutes are kept between `minMinutes` and `maxMinutes`. `jail` is a key of `Config.Jail.locations`; without it he goes to your office's jail. The reason starts after the jail name. The prisoner must be within `commandMaxDistance` (15 m). Lawmen cannot use it when `Config.Booking.mode = 'transport'`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `/unjail`    | Lawmen on duty with the `jail` permission, admins | `ID`                         | Releases a prisoner early and moves him to the jail's release point                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `/bookin`    | Lawmen on duty with the `jail` permission, admins | `[ID]`                       | Opens the booking sheet. Without an ID: the nearest cuffed, hogtied or downed player within 6 m. With an ID: that player, within 10 m.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `/fine`      | Lawmen on duty with the `fine` permission, admins | `ID AMOUNT [reason]`         | Fines a player in dollars (or `Config.Fines.currency`), up to `maxAmount` (5000), within `maxDistance` (15 m)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `/alertlaw`  | Anyone not cuffed or jailed                       | none                         | Opens the form to send for the law. One alert every `alertCooldownSec` (60 s).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `/dispatch`  | Lawmen on duty (when `dispatchEnabled = true`)    | `[text]`                     | With words: sends them on the dispatch radio. Without: opens the radio.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `/calert`    | Lawmen                                            | none                         | Clears the last alert card on your screen                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `/lawcoords` | Admins                                            | none                         | Prints where you stand as `vector4(x, y, z, heading)` in the chat and the F8 console, ready to paste into the config                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `/lawtp`     | Admins                                            | `[place]`                    | Without a place, lists every point of the script in the chat and the F8 console: the town offices of `Config.Towns` (`valentine`, `saintdenis`...), each jail's first cell, release point and release guard (`sisikacell`, `sisikarelease`, `sisikaguard`), a spot just outside the yard of a jail with escapes (`sisikaoutside`), the first spot of each work detail (`worksweep`...) and the transport points (`saintdenispoint`...). With a place, takes you there. The names are matched without case, spaces or signs. Built from the config, so new towns, jails and points show up by themselves.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `/lawdummy`  | Admins                                            | `[mode]`                     | Test people, to try the two-person parts alone. Without a mode, a test suspect stands 1.6 m in front of you with his back turned: **F6** arrests him with the game's arrest, **F6** again takes the cuffs off, **L** leads him (he follows by the game's follow task, a stand-in for a player's escort). `cop`: a test lawman behind you arrests you with the same arrest, the server cuffs you, and he leads you by the arm with the real escort of a player. `walk`, `run`, `stop`: what the test lawman does while he leads you. `tie`: the test suspect is hogtied on the ground (his cuffs come off first). `horse`: a saddled test horse beside you, with you on it (so the game counts it as your horse). `saddle`: you are hogtied and put across your own horse (it must stand beside you), the captive's side of loading a hogtied man; `down` takes you off. The test suspect can be lassoed and hogtied with the game's lasso and put across your horse with R. `gallows [town]`: takes you to the lever of a town's gallows (`valentine`, `rhodes`, `saintdenis`, `blackwater`; empty = the nearest). `hang`: the test suspect (made and cuffed if needed) stands on the nearest trapdoor with the noose on; hold **E** at the lever, or shoot the rope. You can also lead him up yourself and hold **E** by the trapdoor. `hangme`: the noose on you, through the server; the trapdoor opens by itself after 10 seconds (`free` takes it off before). `free`: down from the horse, out of the rope and the cuffs, and the test lawman goes. `clear`: every test person goes. |

`/lawcoords`, `/lawtp` and `/lawdummy` cannot be renamed.

## Commands for old radial menus

These names belong to the stock law scripts. cas-police registers them so that radial menus and other buttons that call them keep working. They cannot be renamed.

CAS Radial Menu needs none of them: cas-police adds its own wheel to it (see [Gameplay](/script-documentation/cas-police/gameplay.md#the-radial-menu)). Its "Call the Law" and "Cancel the Law" slots on VORP run `/callpolice` and `/cancelPoliceAlert` below.

### RSG (only while rsg-lawman is not running)

| Command         | Who may use it        | What it does                                                                            |
| --------------- | --------------------- | --------------------------------------------------------------------------------------- |
| `/lawbadge`     | Same as `/badge`      | Pins or takes off the badge (the radial menu's Badge button)                            |
| `/searchplayer` | Anyone who may search | Searches the nearest cuffed, hogtied or downed player (the radial menu's Search button) |

The radial menu's Cuff, Escort, Jail and Emergency Button call cas-police through the old rsg-lawman events, with no command.

### VORP (only while vorp\_police is not running)

| Command              | Who may use it                  | What it does                                                                             |
| -------------------- | ------------------------------- | ---------------------------------------------------------------------------------------- |
| `/callpolice`        | Anyone not cuffed or jailed     | Opens the alert form, like `/alertlaw`                                                   |
| `/cancelPoliceAlert` | The citizen who sent the alert  | Calls off your own alert of the last 10 minutes                                          |
| `/finishPoliceAlert` | Lawmen                          | Clears the last alert card, like `/calert`                                               |
| `/Drag`              | Lawmen on duty, hunters, admins | Takes hold of, or lets go of, a cuffed person, like the L key                            |
| `/checkjailtime`     | Anyone                          | Shows your own time left, or the time left of the nearest prisoner within 15 m           |
| `/policeMenu`        | Lawmen, admins                  | At a station of your office: goes on or off duty. Anywhere else: opens the records book. |
