> 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-redm-cars/commands.md).

# Commands and Permissions

Every CAS RedM Cars command, who can use it, and how to grant staff access with ACE permissions.

## For everyone

| Command   | Script         | What it does           |
| --------- | -------------- | ---------------------- |
| `/vehhud` | cas-vehiclehud | Opens the HUD settings |

Everything else players do goes through prompts and keys (see [Driving](/script-documentation/cas-redm-cars/driving.md)).

## For staff

Staff commands need an ACE permission. A server command such as `/carpack` needs `command.carpack`. The staff tools that run on the player's game (the ones that print positions or show debug data) need the general `command` ACE. The default `group.admin` has `command`, which covers both.

| Command                                          | Script         | What it does                                                                      |
| ------------------------------------------------ | -------------- | --------------------------------------------------------------------------------- |
| `/carpack`                                       | cas-carpack    | Lists the cars. `/carpack <id or number>` spawns one in front of you              |
| `/c1910repair [health]`                          | cas-car1910    | Repairs the engine of the car you sit in (to full, or to a health from 0 to 1000) |
| `/c1910fuel [litres]`                            | cas-car1910    | Fills the tank of the car you sit in (full, or a number of litres)                |
| `/c1910paint [colour]`                           | cas-car1910    | Paints the car you sit in or stand next to. No argument lists the colours         |
| `/tpdealer [dealership]`                         | cas-dealership | Takes you to a dealership's counter                                               |
| `/dealershipcoords`                              | cas-dealership | Prints your position for the config (F8)                                          |
| `/dealershipstock <dealership> <model> <amount>` | cas-dealership | Sets the stock of a model                                                         |
| `/dealershiprefund <vehicle id> [amount]`        | cas-dealership | Takes back a car sold by mistake and pays its price back to its online owner      |
| `/garagepos`                                     | cas-garage     | Prints an `entrance` line for a new garage (F8)                                   |
| `/impound [fee] [reason]`                        | cas-garage     | Impounds the owned car next to you                                                |
| `/fuelpos [pump]`                                | cas-fuel       | Prints a pump line for `Config.Sites` (F8)                                        |
| `/fueldebug`                                     | cas-fuel       | Shows the pump and prompt debug data                                              |
| `/vehhudpreview`                                 | cas-vehiclehud | Plays the HUD demo                                                                |

### Debug tools (cas-car1910)

For development and support. They need the `command` ACE.

| Command                            | What it does                                                      |
| ---------------------------------- | ----------------------------------------------------------------- |
| `/c1910clean`                      | Deletes every motor car within 60 m                               |
| `/c1910model`                      | Prints the nearest car's model, seats and parts                   |
| `/c1910parts`                      | Lists the nearest car's part props                                |
| `/c1910part <part>`                | Opens or closes one part of the nearest car (within 8 m)          |
| `/c1910fx <effect> [name] [scale]` | Tries another smoke or exhaust effect live (your game only)       |
| `/c1910light [value]`              | Tests a lamp value. No value goes back to the O key's state       |
| `/c1910sync` / `/c1910syncall`     | Writes a sync report (one player / every player)                  |
| `/c1910prof`                       | A script profiler                                                 |
| `/c1910paintcycle [seconds]`       | Cycles the paint of every car to check the colours. Again to stop |

## Granting access

To give one player staff access without making them an admin, add them to a group with the ACE in `server.cfg`:

```
add_ace group.carstaff command.carpack allow
add_ace group.carstaff command.c1910repair allow
add_ace group.carstaff command.impound allow
add_principal identifier.fivem:1234567 group.carstaff
```

The admin-only tools that print positions need the general `command` ACE (`add_ace group.carstaff command allow`).
