# qb-garbagejob

## Introduction

* Allows players to rent a garbage truck for a configured amount and pick up garbage bags around the map. Each bag will net the player a variable amount of pay that can is easily adjustable. There is also the ability to enable the chance of players receiving a cryptostick from this job. Read more about those in [qb-crypto](/qbcore-documentation/qbcore-resources/qb-crypto.md)

## Configuration

### General

```lua
Config = {}

-- Rental fee that is returned on truck return
Config.TruckPrice = 250

-- Want to give out a cryptostick per stop?
Config.GiveCryptoStick = true

-- Has to roll this number or higher to receive a cryptostick
Config.CryptoStickChance = 75

-- How many stops minimum should the job roll?
Config.MinStops = 5

-- Upper worth per bag
Config.BagUpperWorth = 100

-- Lower worth per bag
Config.BagLowerWorth = 50

-- Minimum bags per stop
Config.MinBagsPerStop = 2

-- Maximum bags per stop
Config.MaxBagsPerStop = 5
```

### Peds

```lua
Config.Peds = { -- configure the peds that players interact with
    {
        model = 's_m_y_garbage', -- https://docs.fivem.net/docs/game-references/ped-models/
        coords = vector4(-322.24, -1546.02, 30.02, 294.97),
        zoneOptions = { -- Used for when UseTarget is false
            length = 3.0,
            width = 3.0
        }
    }
}
```

### Locations

```lua
Config.Locations = { -- configure the interaction points
    ["main"] = {
        label = "Garbage Depot", -- map blip name
        coords = vector3(-313.84, -1522.82, 27.56), -- location
    },
}
```

### Vehicles

```lua
Config.Vehicles = { -- configure the vehicles used for the job
    ["trash2"] = "Garbage Truck",
}
```


---

# 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.qbcore.org/qbcore-documentation/qbcore-resources/qb-garbagejob.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.
