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

# Commands

All commands available in zloma\_garages.

***

## Admin Commands

These commands require a group from `Config.AdminGroups`.

### /zlomagarages

Opens the admin panel for creating and managing garages and impounds.

```
/zlomagarages
```

***

### /zgaragesclose

Force closes the admin panel if it gets stuck.

```
/zgaragesclose
```

***

### /forceimpound

Force impounds a vehicle by plate. If the vehicle is currently spawned in the world, requires a double confirmation within 60 seconds.

```
/forceimpound [plate]
```

| Argument | Type   | Description           |
| -------- | ------ | --------------------- |
| plate    | string | Vehicle license plate |

***

### /retrieveimpounded

Retrieves a vehicle from impound, or all vehicles at once.

```
/retrieveimpounded [plate|ALL]
```

| Argument | Type    | Description                     |
| -------- | ------- | ------------------------------- |
| plate    | string  | Specific plate to retrieve      |
| ALL      | keyword | Retrieve all impounded vehicles |

***

### /givecar

Gives a vehicle to an online player.

```
/givecar [playerID] [spawnname?]
```

| Argument  | Type   | Description                                                                   |
| --------- | ------ | ----------------------------------------------------------------------------- |
| playerID  | number | Target player's server ID                                                     |
| spawnname | string | Vehicle spawn name (optional; if omitted, uses vehicle admin is currently in) |

**Notes:**

* Inserts vehicle in the first available public garage.
* Generates a unique plate automatically.
* If `spawnname` is omitted, command uses the admin's current vehicle model.

***

### /givecartoorg

Creates a new organization vehicle and assigns it to the first org garage matching the given job/gang name.

```
/givecartoorg [job] [spawnname?]
```

| Argument  | Type   | Description                                                                   |
| --------- | ------ | ----------------------------------------------------------------------------- |
| job       | string | Organization/job or gang name (e.g., `police`, `ambulance`)                   |
| spawnname | string | Vehicle spawn name (optional; if omitted, uses vehicle admin is currently in) |

**Notes:**

* Generates a unique plate and creates a new DB record.
* Stores vehicle as org vehicle (`is_org_vehicle = 1`) in first matching org garage.
* If `spawnname` is omitted, command uses the admin's current vehicle model.

***

### /givenewcartoorg

Creates a brand new vehicle and inserts it directly as an organization vehicle. Generates a random unique plate.

```
/givenewcartoorg [spawnname] [job]
```

| Argument  | Type   | Description                                         |
| --------- | ------ | --------------------------------------------------- |
| spawnname | string | Vehicle spawn name (e.g., `police`, `adder`)        |
| job       | string | Organization/job name (e.g., `police`, `ambulance`) |

**Notes:**

* Creates a new database entry with generated plate
* Vehicle is inserted as stored in the first matching org garage
* Owner is set to the organization name

***

## Police Commands

These commands require a job listed in `Config.PoliceJobs`.

### /impoundvehicle

Impounds the nearest vehicle. Opens a dialog to set duration, fees, and reason.

```
/impoundvehicle
```

***

## Player Commands

### /reloadgarages

Reloads garage data from the server. Useful if garages were added/modified while the player was online.

```
/reloadgarages
```

***

### /fixgarage

Emergency fix for garage state. Resets internal garage tracking.

```
/fixgarage
```

***

### /fixui

Emergency fix for UI. Force closes any stuck NUI panels and resets state.

```
/fixui
```

***

### /fixgarageui

Combined emergency fix for both garage state and UI.

```
/fixgarageui
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zloma-scripts.gitbook.io/zloma-scripts/zloma_garages-paid/api-reference/commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
