> For the complete documentation index, see [llms.txt](https://atiysus-organization.gitbook.io/aty-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atiysus-organization.gitbook.io/aty-scripts/restaurant-creator/features/supply-chain-and-courier.md).

# Supply Chain & Courier

#### Wholesale supply

From the **Supply Chain** tab of the management tablet:

* Browse the ingredient catalog and add fresh stock to a cart.
* Checkout (paid from **company funds**) creates a pending delivery.
* Review storage limits and dispose of spoiled goods.

Cart checkout validates funds and vehicle capacity server-side. Orders are stored in `aty_restaurant_pending_deliveries`.

#### Delivery missions

Confirming an order spawns a **delivery vehicle**; the driver runs a mission (supplier → restaurant → drop into storage) to restock. Failed/abandoned deliveries can be cancelled.

#### Courier job

An independent **player courier job** delivers finished orders. Configured in `Config.CourierJob`:

| Setting                               | Meaning                                                      |
| ------------------------------------- | ------------------------------------------------------------ |
| `PedModel` / `NPCCoords`              | The courier NPC and where it stands (default Legion Square). |
| `VehicleModel` / `VehicleSpawnCoords` | The delivery scooter and spawn point.                        |
| `VehicleDeposit`                      | Refundable deposit for the scooter.                          |
| `WorkingClothes`                      | Uniform applied on duty (per gender).                        |
| `Blip`                                | Pickup/delivery blip sprites & colors.                       |

Couriers receive a chime and notification on a new order, then drive pickups to drop-offs for pay.

{% hint style="info" %}
Use `/courier` to toggle courier duty and `/canceldelivery` to abandon an active delivery.
{% endhint %}
