# Getting started

## Setup

1. Place `wlabs-towing` in your resources folder.
2. Import the SQL file for your framework.
3. Make sure your tow job exists and matches `Config.JobName`.
4. Review `config.lua` and set depot locations, rentals, rewards, and tow destinations.
5. Start `wlabs-towing` after its dependencies.

## Installation

### 1. Place Resource

Place `wlabs-towing` in your server resources folder.

### 2. Import Database

For Qbox or QB-Core, import:

`sql/towing_stats.sql`

For ESX, import:

`sql/esx.sql`

The ESX file also creates the default `tow` job and grade.

### 3. Set Job Name

Open `config.lua` and make sure this matches your server job:

```lua
Config.JobName = 'tow'
```

Tow drivers must have this job and be on duty to rent trucks, join dispatch, accept NPC jobs, and quote player tow requests.

### 4. Start Order

Start `wlabs-towing` after:

* Framework core (`qbx_core`, `qb-core`, or `es_extended`)
* `ox_lib`
* `oxmysql`
* `ox_target`
* `wlabs-tablet`

Example:

```server.cfg
ensure ox_lib
ensure oxmysql
ensure ox_target
ensure qbx_core
ensure wlabs-tablet
ensure wlabs-towing
```

Use `qb-core` or `es_extended` instead of `qbx_core` if that is your framework.


---

# Agent Instructions: 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://w-labs.gitbook.io/w-labs-docs/scripts/wlabs-towing/getting-started.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.
