> ## 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.

# Configuration

> Full reference for all configuration options in the Bounty Hunter resource

## config/config.lua

### Main Settings

**debug** `boolean` (default: false)

Shows interaction zones in game.

**Dialog** `string` (default: "projectx")

The UI used for the handler conversation. `"projectx"` uses the `projectx-ui` cinematic dialog, `"ox"` uses an ox\_lib alert dialog. If `projectx-ui` is not started, the ox\_lib dialog is used automatically.

**Project X Tasks** `boolean` (default: true)

Shows the contract objectives on the `projectx-ui` task tracker. Requires `projectx-ui` to be started.

```lua theme={null}
["Project X Tasks"] = true,
```

**TasksListPosition** `string` (default: "left")

Side of the screen the task tracker is shown on: `"left"` or `"right"`.

**DrawtextButton** `number` (default: 38)

The key code used to trigger drawtext interactions. `38` is `[E]` by default.

**DrawTextZoneSize** `vector3` (default: vec3(1.5, 1.5, 2))

The size of the drawtext interaction zone.

**MaxActiveContracts** `number` (default: 3)

Maximum contracts running at the same time on the server. Each player can only have one contract, and each location can only host one.

**MinimumPolice** `number` (default: 0)

Minimum number of police required online to take a contract. Set to `0` to disable.

**PoliceJobs** `table` (default: \{"police"})

The jobs that count as police for the `MinimumPolice` check and dispatch alerts.

```lua theme={null}
PoliceJobs = {"police", "fbi"}
```

**BlacklistedJobs** `table` (default: \{"police", "ambulance"})

Players with these jobs can't take contracts.

**NotificationDuration** `number` (default: 3500)

Duration of the displayed notifications in milliseconds.

***

### Cooldowns & Limits

**Cooldown.PlayerCooldown** `number` (default: 10)

Per-player cooldown in minutes after a contract ends (completed, failed, or abandoned). Set to `0` to disable.

**Limits.TotalContractsPerRestart** `number` (default: 0)

Maximum contracts that can be taken per server restart (not per player). Set to `0` to disable.

**Limits.ContractsPerPlayer** `number` (default: 0)

Maximum contracts a single player can take per restart. Set to `0` to disable.

***

### Skill System

**SkillSystem** `boolean` (default: false)

Requires players to meet a minimum level from an integrated XP/skill system before taking a contract. Must have an XP system configured in the bridge.

**MinimumLevel** `number` (default: 10)

Minimum level required to take a contract. Only applies when `SkillSystem` is `true`.

***

### Dispatch

Dispatch is sent when a witness reports a body, not when the contract starts.

**Dispatch.Title** `string` (default: "Homicide")

Title shown in the dispatch alert.

**Dispatch.Message** `string` (default: "A witness reported a body")

Message body shown in the dispatch alert.

**Dispatch.Code** `string` (default: "10-71")

Radio code shown in the dispatch alert.

**Dispatch.Time** `number` (default: 5)

Time in seconds the dispatch alert remains visible. Not all dispatch systems support this.

**Dispatch.Blip** `table`

Blip settings for the dispatch map marker.

```lua theme={null}
Blip = {
    Text = 'Homicide',
    Color = 1,
    Sprite = 303,
    Scale = 0.9
},
```

**Dispatch.Delay** `number` (default: 30)

Seconds between the kill and the dispatch (a witness calling it in).

**Dispatch.ChanceOnKill** `number` (default: 60)

Percentage chance of a dispatch when the target dies.

**Dispatch.ChanceOnKillSilenced** `number` (default: 15)

Percentage chance when the killing shot was suppressed.

**Dispatch.ChanceOnAccident** `number` (default: 5)

Percentage chance when the target died in an "accident" (see `Config.WeaponClasses["accident"]`).

**Dispatch.ChanceOnInnocent** `number` (default: 100)

Percentage chance when an innocent bystander is killed.

***

### Evidence

**Evidence.Status** `boolean` (default: true)

Enables fingerprint evidence drops when taking the photo of the body.

**Evidence.Chance** `number` (default: 50)

Percentage chance that fingerprint evidence is left behind.

***

### Handler

`Config.Handler` controls the NPC that hands out contracts and pays them out.

**Handler.Model** `string` (default: "s\_m\_m\_highsec\_01")

The handler ped model.

**Handler.Coords** `vector4` (default: vector4(-436.89, 1059.01, 326.68, 186.68))

Where the handler stands.

**Handler.Scenario** `string` (default: "PROP\_HUMAN\_BUM\_SHOPPING\_CART")

Idle scenario. You can use `Animation = {Dict = "", Anim = "", Flag = 1}` instead.

**Handler.Interaction** `table`

Target / drawtext settings for talking to the handler.

```lua theme={null}
Interaction = {icon = "fas fa-skull", label = "Talk to the handler", distance = 2.0, size = 1.0},
```

**Handler.PayAnimation** `table | false`

Envelope handover when the player gets paid. Set to `false` to disable.

```lua theme={null}
PayAnimation = {
    Animation = {Dict = "mp_common", Anim = "givetake1_b"}, -- Played on both the player and the handler
    Prop = "prop_cash_envelope_01",                         -- false = no prop
    DelayUntilCancelled = 1,                                -- (Seconds) How long each part plays
},
```

**Handler.Blip** `table`

Blip shown to the contract owner once the proof is taken, to return to the handler.

```lua theme={null}
Blip = {Sprite = 280, Color = 1, Scale = 0.8, Label = "Handler", Route = false},
```

***

### Contract

**Contract.OwnerMustKill** `boolean` (default: true)

When `true`, the contract fails if someone else kills the target. Accidents count if the owner is within `AccidentRange`.

**Contract.AccidentRange** `number` (default: 75.0)

(`OwnerMustKill` only) The owner has to be this close to the body when the target dies without a killer (fall, drowning, etc.).

**Contract.ProofRequired** `boolean` (default: true)

When `true`, the player has to take a photo of the body before returning to the handler. When `false`, the kill is enough.

**Contract.ReturnTime** `number` (default: 20)

Minutes to get back to the handler after the proof (or the kill when `ProofRequired = false`).

**Contract.CleanupDelay** `number` (default: 60)

Seconds before the contract peds are deleted once the contract is over.

**Contract.AreaBlip** `table`

The handler only knows the area the target hangs around in, not the exact spot.

```lua theme={null}
AreaBlip = {
    Radius = 110.0,
    Color = 1,
    Alpha = 90,
    Sprite = 432,
    Scale = 0.9,
    Label = "Contract Area",
    Route = false, -- GPS route to the area
},
```

**Contract.AreaOffset** `number` (default: 70.0)

Maximum distance between the target and the center of the area blip (kept under 80% of the radius). Locations with a fixed `Area` ignore this and `AreaBlip.Radius`.

**Contract.BodyBlip** `table`

Blip placed on the target's body once it's down.

```lua theme={null}
BodyBlip = {Sprite = 310, Color = 1, Scale = 0.8, Label = "Target (Down)"},
```

**Contract.SpookDistance** `number` (default: 15.0)

The target gets spooked by a drawn gun within this distance (in line of sight), or suppressed gunfire within this distance. Any damage also spooks the target. Melee weapons and holstered guns never do.

**Contract.ShotSpookDistance** `number` (default: 60.0)

The target gets spooked by unsuppressed gunfire within this distance.

**Contract.EscapeDistance** `number` (default: 250.0)

The contract fails if a spooked target gets this far from where they were standing.

**Contract.InnocentPenalty** `number` (default: 25)

Percentage taken off the payout for every innocent bystander (decoy) killed.

**Contract.InnocentFailAt** `number` (default: 3)

The handler cancels the contract after this many innocents are killed. Set to `0` to disable.

**Contract.MissedRequestPenalty** `number` (default: 0)

Percentage taken off when the client asked for a specific weapon class and the player used something else. Set to `0` to disable.

***

### Proof

**Proof.Item** `string | false` (default: false)

Item required to take the photo, e.g. `"phone"`. `false` = no item needed.

**Proof.Animation** `table`

The player holding their phone up while the camera is open.

```lua theme={null}
Animation = {Dict = "cellphone@", Anim = "cellphone_text_read_base", Prop = "prop_npc_phone_02"},
```

**Proof.MaxDistance** `number` (default: 8.0)

The body has to be closer than this to the camera for the photo to count.

**Proof.Frame** `number` (default: 0.3)

How far from the center of the screen the body can be (`0.5` = anywhere on screen). Shown in game by the corner brackets of the viewfinder.

**Proof.Fov** `table` (default: \{Default = 50.0, Min = 15.0, Max = 70.0})

Camera field of view. Players zoom in and out with the mouse wheel between `Min` and `Max`.

**Proof.Interaction** `table`

Target / drawtext settings for the body.

```lua theme={null}
Interaction = {icon = "fas fa-camera", label = "Take a photo of the body", distance = 2.0, size = 1.0},
```

***

### Payout

**Payout.Type** `string` (default: "cash")

`"cash"` pays money to `Account`. `"item"` gives `Item` instead (e.g. marked bills or black money).

**Payout.Account** `string` (default: "cash")

`"cash"` or `"bank"`. Used when `Type = "cash"`.

**Payout.Item** `string` (default: "black\_money")

Item given when `Type = "item"`.

***

### Bonuses

Bonuses are a percentage of the base pay. The killing blow is read on the server (cause of death and the game's damage event), so the client never tells the server how the target died.

On contracts with more than one target, each bonus is worked out per target and averaged, so a headshot on one of two targets gives half the headshot bonus.

**Config.Bonuses** `table`

```lua theme={null}
Config.Bonuses = {
    Headshot = {Enabled = true, Bonus = 15, Components = {20}}, -- Ped hit components counted as the head
    Silenced = {Enabled = true, Bonus = 15},                    -- The killing shot was suppressed
    LongRange = {Enabled = true, Bonus = 20, Distance = 150.0}, -- Killer was at least Distance away
    Speed = {Enabled = true, Bonus = 20, Within = 33},          -- Target down within the time limit
    Ghost = {Enabled = true, Bonus = 25},                       -- Target never got spooked, no innocents or guards killed
    MaxTotal = 200,                                             -- Cap on the total bonus %
}
```

***

### Weapon Requests

Sometimes the client wants the job done a certain way. Each tier has a `RequestChance` of a request being added to the contract. Doing it the client's way adds that class's `Bonus` to the payout. On multi-target contracts the request applies to every target.

**Config.WeaponClasses** `table`

Weapons are the cause of death the game reports, so `"accident"` covers getting run over, falling, drowning, and burning.

| Class | Bonus | Chance | Notes |
| - | - | - | - |
| `blade` | 40% | 20 | Knives, machete, hatchet, bottle… |
| `blunt` | 50% | 10 | Unarmed, bat, crowbar, hammer… |
| `pistol` | 10% | 20 | All handguns |
| `shotgun` | 15% | 15 | All shotguns |
| `sniper` | 35% | 10 | `Outdoors = true`: never requested for targets with `Inside = true` |
| `explosive` | 30% | 10 | Grenades, sticky bombs, launchers… |
| `accident` | 75% | 15 | Run over, rammed, fall, drowning, fire |

```lua theme={null}
["blade"] = {
    Label = "up close, with a blade",
    Bonus = 40,
    Chance = 20,
    Weapons = {"WEAPON_KNIFE", "WEAPON_SWITCHBLADE", "WEAPON_DAGGER", "WEAPON_MACHETE", ...},
},
```

***

### Targets

**Config.TargetProfiles** `table`

The target's look and the description the handler gives. Each profile has a `Model`, a `Description`, and `Decoys`: similar looking models that spawn around the target so the player has to identify the right one. A profile can also use `Variants` with several model / description / decoy sets.

```lua theme={null}
["dealer"] = {
    Model = "g_m_y_mexgoon_03",
    Description = "Tank top, gang tattoos, always looking over his shoulder. Has been cutting the product.",
    Decoys = {"g_m_y_mexgoon_01", "g_m_y_mexgoon_02", "a_m_y_mexthug_01", "a_m_m_eastsa_01"},
},
```

Included profiles: `snitch`, `redneck`, `dealer`, `accountant`, `biker`, `boss`.

**Config.Decoys.Models** `table`

Generic bystander models mixed in with the profile's decoys.

***

### Tiers

`Config.Tiers` defines the contract difficulty levels. Each contract rolls a tier based on `Chance`.

| Tier | Chance | Targets | Pay | Time | Armour | Weapon | Guards | Lookouts | Decoys | Revenge |
| - | - | - | - | - | - | - | - | - | - | - |
| `street` — Street Job | 60 | 1 | 2,500 – 4,000 | 15 min | 0 | — | 0 | 0 | 4 | 25%, 2 hunters |
| `professional` — Professional Hit | 30 | 1 | 6,000 – 9,000 | 20 min | 50 | Pistol | 2 | 1 | 5 | 50%, 3 hunters |
| `elite` — High Value Target | 10 | 2 | 22,000 – 32,000 | 35 min | 100 | Combat pistol | 4 | 2 | 6 | 75%, 4 hunters |

Guards and lookouts are per target. `Pay` and `TimeLimit` are for the whole contract.

**Config.Tiers\[tier]** `table`

| Field | Description |
| - | - |
| `Label` | Name shown in the contract and task tracker |
| `Chance` | Weighted chance this tier is picked |
| `Targets` | Targets in one contract, a number or `{min = 1, max = 2}`. Each target is placed in a different location when one is free |
| `Pay` | Base pay range for the whole contract |
| `TimeLimit` | Minutes to get every kill (and the proofs) |
| `Profiles` | Target profiles this tier can use |
| `Locations` | Optional list of `Config.Locations` keys this tier can use. Leave it out to use every location |
| `Behaviour` | What a spooked target does: `flee`, `cower`, or `fight`, each with a `Chance` |
| `TargetArmour` | Target armour (0–100) |
| `TargetWeapon` | Weapon the target carries, `false` for none |
| `Guards` | Number of bodyguards |
| `GuardModels` / `GuardWeapons` | Bodyguard models and weapons, picked at random |
| `Lookouts` | Number of lookouts per target (see [Lookouts](#lookouts)) |
| `Decoys` | Number of decoy bystanders |
| `RequestChance` | Percentage chance the client requests a weapon class |
| `Revenge` | `{Chance, Hunters}`: chance that a target who got away sends people after the player, and how many (max 4). See [Revenge](#revenge) |

```lua theme={null}
["professional"] = {
    Label = "Professional Hit",
    Chance = 30,
    Targets = 1,
    Pay = {min = 6000, max = 9000},
    TimeLimit = 20,
    Profiles = {"dealer", "accountant", "biker"},
    Behaviour = {["flee"] = {Chance = 50}, ["fight"] = {Chance = 50}},
    TargetArmour = 50,
    TargetWeapon = "WEAPON_PISTOL",
    Guards = 2,
    GuardModels = {"g_m_m_armgoon_01", "g_m_m_chigoon_01"},
    GuardWeapons = {"WEAPON_PISTOL", "WEAPON_MICROSMG"},
    Lookouts = 1,
    Decoys = 5,
    RequestChance = 65,
    Revenge = {Chance = 50, Hunters = 3},
},
```

***

### Bodyguards

**Config.GuardOptions** `table`

Applied to every bodyguard once hostile.

```lua theme={null}
Config.GuardOptions = {
    ["MaxHealth"] = 200,              -- 100-200 (100 = dead)
    ["Health"] = 200,
    ["Armour"] = 50,                  -- 0-100
    ["CombatMovement"] = 2,           -- 0 stationary, 1 defensive, 2 offensive, 3 suicidal
    ["CombatRange"] = 1,              -- 0 near, 1 medium, 2 far
    ["Accuracy"] = 40,                -- 0-100
    ["CombatAbility"] = 2,            -- 0 poor, 1 average, 2 professional
    ["SeeingRange"] = 80.0,
    ["HearingRange"] = 80.0,
    ["Alertness"] = 3,
    ["CombatRadius"] = 120.0,         -- Radius the guards look for players to fight
    ["WeaponDetectDistance"] = 35.0,  -- Hostile when an armed player in line of sight (or suppressed gunfire) gets this close
    ["DetectDistance"] = 4.0,         -- Hostile when any player gets this close, armed or not (0 to disable)
    ["Distance"] = {min = 2.5, max = 5.0}, -- How far from the target the guards stand
}
```

***

### Lookouts

Lookouts stand near the target. If one spots the player, they get on the phone, and after `CallTime` seconds the target is warned (spooked). Take the lookout out before the call goes through to stop it.

**Config.Lookouts** `table`

```lua theme={null}
Config.Lookouts = {
    Models = {"a_m_y_stbla_01", "a_m_y_stwhi_01", "g_m_y_famca_01", "a_m_y_mexthug_01"},
    Scenarios = {"WORLD_HUMAN_SMOKING", "WORLD_HUMAN_LEANING", "WORLD_HUMAN_HANG_OUT_STREET"},
    Distance = {min = 12.0, max = 25.0}, -- From the target, used when the location has no LookoutSpawns
    SpotDistance = 25.0,                 -- Spots an armed player in line of sight this close
    DetectDistance = 5.0,                -- Spots any player this close, 0 to disable
    CallTime = 4,                        -- (Seconds) on the phone before the target is warned
}
```

***

### Revenge

A target who saw the player and got away can send people after them. Revenge only rolls when the contract fails for one of the `Reasons` while a target is still alive and spooked (or has escaped). The chance and number of hunters come from the tier's `Revenge` setting.

After `Delay` minutes, a car with the hunters spawns `SpawnDistance` away from the player and drives to them. The player is warned, and the hunters give up after `Duration` minutes, or when the player dies.

**Config.Revenge** `table`

```lua theme={null}
Config.Revenge = {
    Enabled = true,
    Reasons = {"target_escaped", "contract_expired"},
    Delay = {min = 2, max = 6}, -- (Minutes) after the contract fails
    Duration = 10,              -- (Minutes) before they give up
    SpawnDistance = 150.0,
    BailDistance = 30.0,        -- They get out of the car this close to the player
    DriveSpeed = 30.0,
    Reward = 0,                 -- Paid for taking them all out, 0 to disable
    Vehicles = {"baller", "cavalcade", "granger"},
    Models = {"g_m_m_armgoon_01", "g_m_m_chigoon_01", "g_m_y_mexgoon_01"},
    Weapons = {"WEAPON_PISTOL", "WEAPON_MICROSMG"},
    Armour = 25,
    Accuracy = 35,
}
```

***

### Locations

`Config.Locations` defines where targets can spawn. Eight locations are included: Legion Square, Sandy Shores, Mirror Park, Del Perro Pier, Vespucci Beach, Grove Street, Paleto Bay, and Vinewood Boulevard.

**Config.Locations\[key]** `table`

| Field | Description |
| - | - |
| `Label` | Name the handler uses ("Last seen around …") |
| `Area` | Optional fixed blip zone `{Coords, Radius}` over the whole location. Remove it to use the `AreaBlip` circle around the target |
| `TargetSpawns` | Possible target positions. Each has `coords`, a `Scenario` or `Animation`, and `Inside = true` for indoor spots (no sniper requests) |
| `DecoySpawns` | Positions for the decoy bystanders, with a `Scenario` or `Animation` |
| `LookoutSpawns` | Optional `{coords = vector4(), Scenario = ""}` spots for the lookouts. Without them, lookouts stand `Config.Lookouts.Distance` away from the target |

```lua theme={null}
["legion"] = {
    Label = "Legion Square",
    Area = {Coords = vector3(195.0, -935.0, 30.0), Radius = 110.0},
    TargetSpawns = {
        {coords = vector4(178.32, -948.11, 29.09, 145.0), Scenario = "WORLD_HUMAN_SMOKING"},
        -- ...
    },
    DecoySpawns = {
        {coords = vector4(186.40, -940.20, 30.09, 90.0), Scenario = "WORLD_HUMAN_STAND_MOBILE"},
        -- ...
    },
},
```

> [!NOTE]
>
> The number of decoys spawned is capped at the number of `DecoySpawns` in the location. Give each location at least as many `DecoySpawns` as the highest tier's `Decoys` count (6 by default) to get the full amount. Decoys spawn once per location, so two targets in the same location share them.
>
> A multi-target contract needs free locations (or free `TargetSpawns`) for every target. If there aren't enough, the contract is offered with fewer targets.

***

### Logs

Configured in `config/logs.lua`.

**Enable** `boolean` (default: false)

Enables or disables the logging system.

**APIKey** `string` (default: "")

Your Discord webhook URL, or your Fivemerr/Fivemanage API key.

**FivemanageDataset** `string` (default: "")

The Fivemanage dataset to log activity to. Only used with Fivemanage.


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