> For the complete documentation index, see [llms.txt](https://docs.gunchi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gunchi.dev/scripts/vehicle-transport-system/installation.md).

# Installation

## **1. Add Transport Garage to Your Garages Config**

Add the following entry to your **garages config**.\
This garage is where transport companies will **collect impounded vehicles** for transport.

```lua
{
    Label = "Vehicle Transport Garage",
    Garage = "vehicletransport",
    Type = "standard",
    VehicleType = "vehicle",
    AllowTransport = true,
    Bays = {
        {
            Spawn = vector4(907.32281, -1054.226, 32.41579, 91.499694),
            Zone = {
                vector = vector3(907.322815, -1054.226074, 32.415791),
                length = 4.4,
                width = 5.8,
                options = {
                    heading = 0,
                    minZ = 30.415790557861,
                    maxZ = 34.415790557861
                }
            },
        },
    }
},
```

***

## **1.1 Add Required Garages Export**

At the bottom of your **garages config**, add (or confirm you already have) the following export:

```lua
exports('getGarageConfig', function()
	return Config.Garages
end)
```

This allows the Vehicle Transport script to access your garage definitions.

***

## **2. Database Setup**

Depending on your installation state:

* **First-time installation:**\
  Run the included:

  ```
  vehicletransport.sql
  ```
* **Updating the script:**\
  Run:

  ```
  updatesql.sql
  ```

This will create or update the required database tables for tracking transported vehicles.

***

## **🎉 Installation Complete**

Your Vehicle Transport garage is now registered, and the script can access your garage configuration and database tables.\
You may now configure additional options inside the script’s `config.lua` as needed.


---

# 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://docs.gunchi.dev/scripts/vehicle-transport-system/installation.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.
