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

# FAQs

> Frequently asked questions about the Bounty Hunter resource

## General Questions

> [accordion] What frameworks are supported?
>
> The script supports QBCore, Qbox, and ESX through the Project X Bridge. Set `Framework` to `'auto'` in the bridge config and it will detect your framework automatically.
>
> Custom frameworks and any other framework work as well if you add the framework exports in the bridge's open source files. Set `Framework` to `'custom'` and implement the adapter functions in `projectx-bridge`. See the [Bridge Overview](https://docs.projectx.gg/resources/bridge/overview.md).

> [accordion] Do I need the Project X Bridge?
>
> Yes. The bridge is required for this script to function. It handles framework detection, inventory, dispatch, notifications, progressbars, XP, evidence, and logs. See the [Bridge Installation](https://docs.projectx.gg/resources/bridge/installation.md) page for setup instructions.
>
> When you purchase Bounty Hunter, the `projectx-bridge` asset is automatically delivered to your CFX portal.

> [accordion] Is projectx-ui required?
>
> No. `projectx-ui` adds the handler's cinematic dialog and the on-screen task tracker. Without it, the handler uses an ox\_lib alert dialog and no task tracker is shown.

> [accordion] How does a contract work?
>
> **1. Talk to the handler**
>
> The handler offers a contract: the target's name (or several names on elite contracts), a description, the area they were last seen in, the time limit, and the pay. Sometimes the client wants it done a certain way (e.g. "with a blade" or "make it look like an accident") for extra pay.
>
> **2. Find the target**
>
> Only the area is marked on the map, one per target. The target is mixed in with decoy bystanders who look alike, so use the description to pick the right one.
>
> **3. Take them out**
>
> Higher tiers have armour, a weapon, bodyguards, and lookouts. If the target gets spooked, they flee, cower, or fight back depending on the tier.
>
> **4. Take a photo of the body**
>
> With `ProofRequired = true`, photograph each body before the time limit runs out. The phone camera opens: zoom with the mouse wheel, get the body inside the corner brackets, and take the picture. The body has to be within `Proof.MaxDistance` and nothing can be in the way.
>
> **5. Return to the handler**
>
> Get back within `ReturnTime` minutes to get paid, with bonuses and penalties applied.

> [accordion] What spooks the target?
>
> A drawn gun within `SpookDistance` (in line of sight), unsuppressed gunfire within `ShotSpookDistance`, suppressed gunfire within `SpookDistance`, or any damage. Melee weapons and holstered guns never spook the target. If a spooked target gets `EscapeDistance` away from their starting point, the contract fails.
>
> A lookout who spots the player also warns the target. See below.

> [accordion] What do lookouts do?
>
> Professional and elite targets have lookouts nearby (`Lookouts` in the tier). A lookout spots an armed player in line of sight within `SpotDistance`, or any player within `DetectDistance`. They then get on the phone, and after `CallTime` seconds (4 by default) the target is spooked. Take the lookout out during the call to stop the warning.

> [accordion] What is revenge?
>
> If a contract fails because the target escaped or time ran out while the target was spooked, the target may send people after the player. The chance and the number of hunters depend on the tier (25% / 50% / 75% by default). A few minutes later the player is warned, and a car of armed hunters comes for them. They give up after `Config.Revenge.Duration` minutes. Set `Config.Revenge.Reward` to pay players for taking them all out, or `Enabled = false` to turn revenge off.

> [accordion] How are the bonuses calculated?
>
> Bonuses are a percentage of the base pay, capped at `Config.Bonuses.MaxTotal` (200% by default):
>
> * **Headshot** — 15%
> * **Suppressed** — 15%
> * **Long range** (150m+) — 20%
> * **Quick work** (within 33% of the time limit) — 20%
> * **Ghost** (target never spooked, no innocents or guards killed) — 25%
> * **Client's request** — the weapon class bonus (10% to 75%)
>
> On contracts with more than one target, each bonus is averaged across the targets.
>
> Each innocent killed takes `InnocentPenalty` % (25% by default) off the payout. The kill is read on the server from the cause of death and the game's damage events, so it can't be faked from the client.

> [accordion] Why did my contract fail?
>
> A contract fails when:
>
> * The time limit runs out before every kill (and the proofs)
> * You don't return to the handler within `ReturnTime`
> * A spooked target escapes
> * The target ped disappears (e.g. deleted by another script)
> * Someone else kills the target (with `OwnerMustKill = true`)
> * You kill `InnocentFailAt` innocents (3 by default)

> [accordion] When are police alerted?
>
> Not when the contract starts. A witness calls it in `Dispatch.Delay` seconds after a death, with a chance based on how it happened: 60% for a normal kill, 15% if suppressed, 5% for an accident, and 100% when an innocent is killed.

> [accordion] How do I cancel all contracts manually?
>
> Use the `/projectxbountyhunter` command (requires admin permissions, or run it from the server console), or call the `Reset()` server export from another resource:
>
> ```lua theme={null}
> exports['projectx-bountyhunter']:Reset()
> ```
>
> See the [Commands](https://docs.projectx.gg/resources/bounty-hunter/commands.md) and [Exports](https://docs.projectx.gg/resources/bounty-hunter/exports.md) pages for more details.

## Configuration Questions

> [accordion] How do I require a minimum number of police?
>
> Set `MinimumPolice` to the number you want in `config/config.lua`, and make sure the correct jobs are listed in `PoliceJobs`.
>
> ```lua theme={null}
> MinimumPolice = 2,
> PoliceJobs = {"police", "fbi"},
> ```

> [accordion] How do I pay contracts in black money or marked bills?
>
> Set `Config.Payout.Type` to `"item"` and choose the item:
>
> ```lua theme={null}
> Config.Payout = {
>     Type = "item",
>     Account = "cash",
>     Item = "black_money",
> }
> ```
>
> For a custom payout (e.g. marked bills with a worth value), edit `PayContract` in `opensource/server/server.lua`.

> [accordion] How do I require a phone for the photo?
>
> Set `Config.Proof.Item` to your phone item, e.g. `"phone"`. To skip the photo entirely, set `Config.Contract.ProofRequired = false`.

> [accordion] How do I let anyone finish the job?
>
> Set `Config.Contract.OwnerMustKill = false`. The contract then no longer fails when someone else kills the target.

> [accordion] How do I gate contracts behind an XP or level requirement?
>
> Set `SkillSystem` to `true` and configure `MinimumLevel` in `config/config.lua`. You also need a compatible XP system integrated in the bridge config (`XPSystem`).
>
> Supported systems include `pickle_xp`, `sd-levels`, `cw-rep`, and `OT_skills`.

> [accordion] How do I add a new location?
>
> Copy an existing entry in `Config.Locations`, rename the key, and update the `Label`, `Area`, `TargetSpawns`, and `DecoySpawns`. Mark indoor target spawns with `Inside = true` so the client never requests a sniper kill there.

> [accordion] How do I give a contract more than one target?
>
> Set `Targets` in the tier to a number, or to `{min = 1, max = 3}` for a random count. Each target gets their own location and area blip when one is free. Raise `Pay` and `TimeLimit` to match, since both are for the whole contract.

> [accordion] How do I limit a tier to certain locations?
>
> Add a `Locations` list to the tier, e.g. `Locations = {"legion", "vinewood"}`. Without it, the tier uses every location.

> [accordion] How do I turn off lookouts or revenge?
>
> Set `Lookouts = 0` in each tier to remove lookouts. Set `Config.Revenge.Enabled = false` to turn revenge off, or set a tier's `Revenge.Chance` to `0`.

> [accordion] How do I add a new target type?
>
> Add a profile to `Config.TargetProfiles` with a `Model`, `Description`, and look-alike `Decoys`, then add its key to the `Profiles` list of the tiers that should use it.

## Troubleshooting

> [accordion] The script won't start
>
> Make sure `projectx-bridge` and `ox_lib` are started before the script in your `server.cfg`, and that OneSync is enabled.

> [accordion] The handler says there's no work
>
> `MaxActiveContracts` has been reached, or every location is already in use. Each location can only host one contract at a time, and a multi-target contract can take up several. Add more locations or raise `MaxActiveContracts`.

> [accordion] The handler won't talk to me
>
> Check that your job isn't in `BlacklistedJobs`, that you aren't on a player cooldown (`Cooldown.PlayerCooldown`), and that you haven't hit the restart limits.

> [accordion] The dialog or task tracker doesn't show
>
> Both need `projectx-ui` started before the script. Without it, the handler falls back to the ox\_lib dialog.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.