> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apex-services.site/llms.txt
> Use this file to discover all available pages before exploring further.

# APEX Brewing Job

> Interactive distilleries, fermenting barrels, and a delivery loop.

A full brewmaster job for ESX. Players brew wort at interactive distilleries with particle effects and a progressbar, ferment beer types (preconfigured german beer: Radler, Weissbier, Pils) in personal barrels, then run random-destination deliveries with a trunk pickup animation and payout.

## Features

* Three beer lines — Radler, Weissbier, Pils — each with its own fermenting barrel
* Interactive distilleries with PTFX and synced progressbar
* Per-player fermenting — barrels tick on a server interval, not a client timer
* Random delivery routes — 6 drop-off spots, vehicle spawn with automated payout
* Anti-cheat — spoofed-inventory detection routed through `Hooks.BanPlayer`
* Drop-in ESX, no database changes (works with Legacy + 1.x)

## Requirements

<CardGroup cols={2}>
  <Card title="Required" icon="circle-check">
    `es_extended`, `ox_lib`
  </Card>

  <Card title="Optional" icon="puzzle-piece">
    Any fuel resource (e.g. `lc_fuel`), `vehiclekeys` — wire via `Hooks.OnWorkVehicleSpawned`.
  </Card>
</CardGroup>

## Installation

1. Drop `apex-brewing-job` into `resources/`
2. Add the items (`hopfen`, `bierwuerze`, `radler`, `weissbier`, `pils`) to your inventory
3. `ensure apex-brewing-job` after dependencies

## Configuration

```lua config.lua theme={null}
Config.Items.raw          = 'hopfen'
Config.Items.wort         = 'bierwuerze'
Config.QuestId            = 'Braumeister'
Config.WorkVehicle        = 'speedo'
Config.HopfenPerBrew      = 5
Config.FermentingInterval = 5
Config.Prices             = { radler = 130, weissbier = 140, pils = 150 }
```

Ships with 4 distillery spots, 3 fermenting barrels per location, and 6 configurable sell spots.

## Hooks

See [Hooks reference / Brewing](/hooks/apex-brewing-job). Key hooks: `Hooks.OnWorkVehicleSpawned`, `Hooks.OnQuestProgress`, `Hooks.OnDeliveryCompleted`, ox\_inventory bridge (`Hooks.CanCarryItem` etc.).

## Resource info

<Note>
  Code accessible: `config.lua`, `hooks.lua`, `locales/*`. Approximately 1400 lines of Lua. English + German.
</Note>
