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

# Commands & Permissions

| Command                                         | What it does                                                                                                             |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `/carcraft_cancel [station id \| all] [refund]` | Cancels the build at a station (the nearest one without an id). Add `refund` to give the materials back to the owner     |
| `/carcraft_reload`                              | Reloads `location.json` and `locales.json` without a restart                                                             |
| `/carcraft_editor [station id \| off]`          | Live editor for a station's screen and camera, see [Stations](/daddy-studios-docs/scripts/daddy-carcrafting/stations.md) |

All three are limited to `group.admin`. Add your staff in `server.cfg`:

```cfg
add_principal identifier.fivem:1234567 group.admin
```

The server console can run `/carcraft_cancel` and `/carcraft_reload` too.

## Exports (server)

```lua
-- materials of the recipe that builds this model: { car_chassis = 1, car_wheel = 4, ... } or nil
exports['daddy-carcrafting']:GetCraftVehicleParts('blista')

-- cancels a station's build, true = refund the materials to the owner if online
exports['daddy-carcrafting']:CancelCraftStation('workshop_1', true)
```

## Test mode

`Config.TestMode = true` makes builds free, removes level and blueprint locks, shortens every step and adds `/carcraftfinish` to finish your build at once.

{% hint style="danger" %}
Never leave test mode on on a live server: every player can build any vehicle for free.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://daddy-studios.gitbook.io/daddy-studios-docs/scripts/daddy-carcrafting/commands-and-permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
