> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-jobs/deliveries.md).

# Deliveries

Staff can order supplies, collect them and bring them back to the business.

```lua
delivery = {
    enabled        = true,
    cooldownMins   = 20,
    missionGrade   = 0,                 -- minimum grade allowed to start one
    baseCost       = 300,
    vanModel       = 'panto',
    vanSpawnCoords = vector4(0.0, 0.0, 0.0, 0.0),
    dropoffCoords  = vector3(0.0, 0.0, 0.0),
    dropoffLabel   = 'Unload Supplies',
    supplyItems = {
        {
            name   = 'bm_milk',
            label  = 'Fresh Milk',
            amount = 30,
            cost   = 60,
            pickupLocations = {
                vector3(0.0, 0.0, 0.0),
                vector3(0.0, 0.0, 0.0),
            },
        },
    },
},
```

### Running a delivery

1. Open the delivery option and choose the supplies you want. The cost comes out of the business balance.
2. Take the van that spawns.
3. Drive to each pickup spot and load up.
4. Bring everything to the drop-off, to fill the stock room.

There's a cooldown between deliveries, set by `cooldownMins`. `missionGrade` sets the lowest grade allowed to start one. `Config.DeliveryProp` is the box prop used while carrying supplies.
