# Installation

{% hint style="warning" %}
Make sure you read everything carefull when installing this resource.
{% endhint %}

## Dependencies

[Polyzone](https://github.com/mkafrin/PolyZone) by mkafrin\
[qb-core](https://github.com/qbcore-framework/qb-core) by qbcore-framework\
[qb-menu](https://github.com/qbcore-framework/qb-menu) by qbcore-framework or [ox\_lib's context menu](https://github.com/overextended/ox_lib/releases) by Overextended\
[ps-ui](https://github.com/Project-Sloth/ps-ui) by Project-Sloth (optional)\
[tasks](https://github.com/Thummie/thommie-tasks/) by thommie (optional)

## How to install

* Download and unzip the thommie-delivery.zip
* Add "ensure thommie-delivery" to your server.cfg
* (re)start your server and you are done.

## How to add new dealer locations

You can create new locations for dealers very easy, you go to your config.lua and you will search for Config.Dealers (line 5 by default). Now you can follow the template we have made and change the values. (Use the /pzcreate command to get the perfect values)

#### Dealers Template

```lua
[ID] = {
    name = 'Thommie', -- This is the name of the dealer.
    type = 'weed', -- This is the type of package you are delivering.
    hours = { -- The hours of the day that the dealer will open the door
        min = 0,
        max = 24,
    },
    pos = vector4(x, y, z, heading),
    length = 1.25,
    width = 1.0,
    minZ = 0.0,
    maxZ = 2.0,
}
```

## How to add new dropoff locations

You can create new dropoff locations by going to the config.lua and search for Config.DropOffLocations (line 27 by default). Now you can follow the template we have made and change the values to what you want.

#### Dropoff Locations Template

```lua
[ID] = {
    pos = vector4(x, y, z, heading),
    length = 1.25,
    width = 1.0,
    minZ = 0.0,
    maxZ = 2.0,
},
```

## How to add new packages

You can create new package types by adding those to the config.lua file. Search for Config.Packages (line 20 by default) and add new package types or change the current types.

#### Packages Template

```lua
['type'] = {
    item = 'type_item',
    amount = { -- The amount of packages you will receive to deliver.
        min = 1,
        max = 3,
    },
    price = { -- The price you will receive by delivering the package (this is the price per package)
        min = 100,
        max = 300,
    },
},
```


---

# 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://docs.thummie.com/docs/premium/illegal-deliveries/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.
