# Installation

1. Copy `lastresort_wheelman` into the `resources` directory.
2. install sql file
3. Add this after your framework, optional `oxmysql`, and LastResort integrations in `server.cfg`:

```cfg
set onesync on
ensure lastresort_wheelman
```

3. Configure police jobs, rewards, and the dispatch provider.
4. Restart the server, then test as an admin with `/wheelmanadmin spawn`.

## Configure

- Leave persistence and framework detection on `auto` unless your stack needs a fixed provider.
- Set police job names, duty requirements, dispatch, payout account, contract timing, and spawn chance.
- In JSON mode, ensure the resource can write to its `data` directory.
- Optional `lastresort_notify` and `lastresort_chat` integrations must start before Wheelman.

## Verify

1. Run `/wheelmanadmin spawn` and drive to the generated contract.
2. Hold the horn near the robber and confirm only one player can claim the job, and that he starts for the car at once.
3. Park with the passenger side against a wall and confirm he goes round to another door; hit something on the way and confirm he stays in.
4. Complete a delivery and verify payout and reputation persistence.
5. Run `/wheelmanadmin clear` and confirm all contract entities are removed.

## Important

- OneSync is required.
- In JSON mode, the `data` directory must be writable. Back it up before updating.
- In standalone mode, provide a custom payout function or rewards will only be logged.
- Review police-conflict warnings and disable debug features before going live.
