> 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-wagon-livery-studio/commands.md).

# Commands

CAS Wagon Livery Studio commands: the staff studio command, the players' livery book command and the debug commands for testing wagon liveries on a RedM server.

## Staff

* `/liverystudio`: opens the studio. Needs the ACE `cas.liverystudio` or a group in `Config.AdminGroups`. The name is `Config.Command`. Typed in the server console it only answers "open it in game".

## Players

* `/livery`: opens the livery book. At a stable it sells that town's liveries; everywhere (with `Config.ApplyAnywhere = true`, the default) it puts the player's own liveries on their wagon, or takes them off. The name is `Config.BookCommand`; set it to `""` to turn it off and use counters only. See [The livery book](/script-documentation/cas-wagon-livery-studio/livery-book.md).

Counters (`Config.Counters`) open the same book with a prompt (hold Enter by default), no command needed.

## Debug

Only with `Config.Debug = true`. Keep it `false` on a live server.

* `lv_give <playerId> <designId>` (server console, or staff in game): gives a design to a player as a gift. The design id is the `id` column of the `cas_livery_designs` table; the server console also prints it on every export (`built design 7 as cas_lv_s003, live after the next restart`). It shows in the player's book once the design is live.
* `/lv_test wagon <slot> [model]` (in game): spawns a wagon (the Covered Wagon, `wagon02x`, unless you name another model) 8 metres ahead with livery slot `<slot>`'s prop on it, to check a livery without the book. Its left side faces you.
* `/lv_test clear`: removes what `/lv_test` spawned.
