> ## 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 Container Robbery resource

## config/config.lua

### Main Settings

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

Shows polyzones and interaction zones in game. Useful for testing zone placement.

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

Disables all minigames. Useful for testing the full robbery flow without completing minigame challenges.

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

The UI used for the fixer 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.

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

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

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

The size of the drawtext interaction zone.

**ResetHeist** `number` (default: 120)

Minutes until the yard resets after a robbery was started. Only one yard can be robbed at a time.

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

Disables the loud approach. Walking into a detection zone will no longer start a robbery.

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

Disables the fixer contracts. No fixer spawns, and the robbery can only be started through a detection zone.

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

Disables the particle effects.

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

When `true`, players keep their weapon out during robbery steps. By default it is holstered, never taken.

**SpawnNetworkedPropsServerSide** `boolean` (default: true)

Spawns networked props server side. Set to `false` to spawn them client side instead.

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

Minimum number of police required online to start a robbery (both approaches). 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"}
```

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

Players with these jobs never trigger a detection zone, so responding officers don't start or raise the alarm.

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

How long the alarm plays for, in minutes.

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

Duration of the displayed notifications in milliseconds.

***

### Cooldowns & Limits

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

Per-player cooldown in minutes after starting a robbery. Set to `0` to disable.

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

Maximum robberies per server restart (not per player). Set to `0` to disable.

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

Maximum robberies a player can take part in per restart. Starting one, checking in at the gate, or robbing a container or crate all count, once per robbery. 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 starting a robbery. Must have an XP system configured in the bridge.

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

Minimum level required to initiate a robbery. Only applies when `SkillSystem` is `true`.

***

### Dispatch

**Dispatch.Title** `string` (default: "Container Robbery")

Title shown in the dispatch alert. Can be overridden per yard in `Config.Locations`.

**Dispatch.Message** `string` (default: "Alarm triggered at a container yard")

Message body shown in the dispatch alert. Can be overridden per yard in `Config.Locations`.

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

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 = 'Container Robbery',
    Color = 1,
    Sprite = 677,
    Scale = 0.9
}
```

***

### Evidence & Stress

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

Enables fingerprint evidence drops at the crime scene.

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

Percentage chance that fingerprint evidence is left behind.

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

Enables the stress system. Stress is only applied when a minigame is failed.

**Stress.Chance** `number` (default: 90)

Percentage chance that stress is applied on a minigame fail.

**Stress.Amount** `table` (default: \{min = 1, max = 3})

The minimum and maximum amount of stress applied per failure.

***

### Fixer

`Config.Fixer` controls the NPC that sells container contracts.

**Fixer.Model** `string` (default: "g\_m\_m\_armboss\_01")

The fixer ped model.

**Fixer.Coords** `vector4` (default: vector4(1401.61, -2202.63, 60.78, 18.64))

Where the fixer stands.

**Fixer.Scenario** `string` (default: "WORLD\_HUMAN\_SMOKING")

The scenario the fixer plays while idle.

**Fixer.Interaction** `table`

Target / drawtext settings for talking to the fixer.

```lua theme={null}
Interaction = {icon = "fas fa-user-secret", label = "Ask for work", distance = 2.0, size = 1.0},
```

**Fixer.Price** `table`

The price of a contract. `Type` is `"cash"` or `"item"`.

```lua theme={null}
Price = {
    Type = "cash",   -- "cash" or "item"
    Amount = 1250,   -- Cash amount, or item amount when Type = "item"
    Item = "x_phone", -- Item used when Type = "item"
},
```

**Fixer.PayAnimation** `table | false`

Handover animation after paying: the player gives the cash and the fixer hands back the pass card. Set to `false` to disable.

```lua theme={null}
PayAnimation = {
    Animation = {Dict = "mp_common", Anim = "givetake1_b"},
    Prop = "prop_anim_cash_pile_01",     -- Cash in the player's hand (false = no prop)
    CardProp = "tr_prop_tr_acc_pass_01a", -- Pass card prop (only with Config.GatePass)
    DelayUntilCancelled = 1,             -- (Seconds) How long each part plays
},
```

**Fixer.Locations** `table` (default: \{})

Keys from `Config.Locations` the fixer can send players to, e.g. `{"port", "cargoship-daisy-lee"}`. Leave empty to use all of them.

**Fixer.Containers** `number` (default: 2)

How many containers are activated per contract. Capped at the number of containers in the location.

**Fixer.ExpireTime** `number` (default: 30)

Minutes before the contract resets if not every container was robbed.

**Fixer.ResetAfterCompletion** `number` (default: 2)

Minutes before the location resets once every contract container has been robbed.

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

Minutes after a contract ends (expired or completed) before the fixer has work again. Set to `0` to disable.

**Fixer.Blip** `table`

Blip shown on every contract container. Only the buyer sees them.

```lua theme={null}
Blip = {Sprite = 478, Color = 1, Scale = 0.8, Label = "Contract Container"},
```

**Fixer.DispatchChanceOnCut** `number` (default: 15)

Percentage chance that cutting a container during a contract sends a dispatch (noise), without spawning the guards. Set to `0` to disable.

***

### Gate Pass

**GatePass.Enabled** `boolean` (default: true)

When enabled, the fixer hands over a pass card with each contract, which must be shown to the gate guard before entering the yard.

**GatePass.Item** `string` (default: "container\_pass")

The pass item given by the fixer and taken by the gate guard.

**GatePass.Model** `string` (default: "s\_m\_m\_security\_01")

Default gate guard model. Can be overridden per location with `GateGuard.Model`.

**GatePass.Scenario** `string` (default: "WORLD\_HUMAN\_CLIPBOARD")

What the gate guard does while waiting.

**GatePass.Interaction** `table`

Target / drawtext settings for the gate guard.

```lua theme={null}
Interaction = {icon = "fas fa-id-card", label = "Show pass card", distance = 2.0, size = 1.0},
```

***

### Locations

`Config.Locations` defines every yard that can be robbed. Four yards are included by default:

| Key | Label | Active containers |
| - | - | - |
| `port` | Port of South Los Santos | 10 |
| `cargoship-daisy-lee` | Daisy-Lee | 3 of 9 |
| `cargoship-ocean-motion` | Ocean Motion | 3 of 7 |
| `elysian-island` | Elysian Island Warehouse | 3 of 9 |

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

Each yard supports the following fields:

| Field | Description |
| - | - |
| `Label` | Name shown in notifications and logs |
| `Alarm` | Where the alarm sound plays when the robbery goes loud |
| `SpawnOnlyActive` | `true` spawns only the active containers. `false` keeps every container in place |
| `AlarmOnContainer` | (Loud approach) `true` = entering the detection zone starts the robbery quietly, and the alarm and guards only trigger once someone starts robbing a container |
| `Dispatch` | Optional `Title` / `Message` override for this yard |
| `Zones.Yard` | Polyzone covering the whole yard, used to create the container and crate interactions |
| `Zones.Detection` | Polyzone that starts the loud approach when entered |
| `ActiveContainers` | How many containers are robbable per heist, picked at random. `0` = all of them |
| `Containers` | Container positions and headings (`vector4`) |
| `GateGuard` | Contract check-in NPC at the yard entrance, outside the detection zone. Supports `Coords` and an optional `Model` |
| `SecurityGuards` | Guards that stand around passively until the alarm goes off, then become hostile at the same positions. Each has `Model`, `Coords`, `Weapon`, `Ammo`, and a `Scenario` or `Anim` |

```lua theme={null}
["port"] = {
    Label = "Port of South Los Santos",
    Alarm = vector3(484.02, -3119.2, 14.03),
    SpawnOnlyActive = false,
    AlarmOnContainer = false,
    Dispatch = {Message = 'Alarm triggered at the Port of South Los Santos warehouse'},

    Zones = {
        Yard = {points = {...}, thickness = 70},
        Detection = {points = {...}, thickness = 30},
    },

    ActiveContainers = 10,
    Containers = {
        ["Container1"] = {coords = vector4(462.44, -3196.7, 5.07, 89.61)},
        -- ...
    },

    GateGuard = {Coords = vector4(482.12, -3112.93, 5.08, 12.89)},

    SecurityGuards = {
        {Model = "s_m_m_chemsec_01", Coords = vector4(466.05, -3141.31, 5.07, 322.73), Weapon = `WEAPON_SMG`, Ammo = 200, Scenario = "WORLD_HUMAN_GUARD_STAND"},
        -- ...
    },
},
```

**Config.CutInteraction** `table`

Target / drawtext settings for the container lock.

```lua theme={null}
Config.CutInteraction = {icon = "fas fa-link", label = "Cut through the lock", distance = 1.5, size = 0.35}
```

***

### Decoy Containers

Decoy containers look exactly like the real ones (same locks, same crates), but they are a trap: the crates are empty and opening the container silently alerts the police. No alarm plays and no guards spawn.

**Decoy.Enabled** `boolean` (default: true)

Enables decoy containers.

**Decoy.Chance** `number` (default: 15)

Percentage chance for each active container to be a decoy.

**Decoy.MaxDecoys** `number` (default: 1)

Maximum decoys per heist.

**Decoy.SilentDispatch** `boolean` (default: true)

Opening a decoy sends a dispatch, but only if the robbery hasn't gone loud yet.

**Decoy.DispatchDelay** `number` (default: 20)

Delay in seconds before the decoy dispatch goes out.

**Decoy.Dispatch** `table`

Dispatch text used for the decoy alert.

```lua theme={null}
Dispatch = {
    Title = 'Customs Sting Triggered',
    Message = 'A marked container was opened at a container yard',
    Code = '10-31',
},
```

**Decoy.BaitLoot** `table`

Crates inside a decoy give nothing except this chance of a bait item. Set `Chance` to `0` to disable.

```lua theme={null}
BaitLoot = {Chance = 25, Name = "x_phone", Amount = {min = 1, max = 1}},
```

***

### Lock Types

`Config.LockTypes` defines the locks that can spawn on a container. Each active container rolls a lock based on `Chance`. The lock's `Tier` decides which crate layouts can spawn behind it.

| Lock | Chance | Tier | Opened with |
| - | - | - | - |
| `padlock` | 50 | 1 | `x_grinder` |
| `reinforced` | 35 | 2 | `x_grinder` (25% break chance) |
| `electronic` | 15 | 3 | `x_device` hack (50% break chance) |

**LockTypes\[lock]** `table`

| Field | Description |
| - | - |
| `Label` | Display name |
| `Chance` | Weighted chance this lock is picked |
| `Tier` | Lock tier, matched against `Config.CrateLayouts[x].Tiers` |
| `Prop` | Lock prop model, offset, and rotation. `HideDefault` hides the container's own latch |
| `Minigame` | Minigame step in `opensource/client/client.lua`. Only used when `Config.Cutter.Enabled = false` |
| `Duration` | Progress bar (ms) before the grinder animation. Only used when `Config.Cutter.Enabled = false` |
| `Item` | Item required to cut the lock. `false` = no item |
| `GrinderBreakChance` | Percentage chance the grinder breaks after cutting |
| `Hack` | (Electronic only) `Minigame`, `Item`, `BreakChance`, and `FailGoesLoud` for the bypass |

**LockTypes.electronic.Hack** `table`

Settings for bypassing the electronic lock.

```lua theme={null}
Hack = {
    Minigame = "electronic",
    Item = "x_device",    -- Item required to hack the lock
    BreakChance = 50,     -- % chance the device is consumed (success or fail)
    FailGoesLoud = true,  -- Failing the hack triggers the alarm + guards, even during a fixer contract
},
```

***

### Cutter

`Config.Cutter` controls the built-in grinder and bypass minigames.

**Cutter.Enabled** `boolean` (default: true)

Uses the built-in grinder (padlock, reinforced) and digital bypass (electronic) UIs. Set to `false` to use each lock's `Minigame` and `Duration` from `Config.LockTypes` instead.

**Cutter.Locks** `table`

Per-lock tuning of the built-in cutter.

```lua theme={null}
Locks = {
    ["padlock"] = {
        Time = 60, Strikes = 3, SpinUp = 1.2, MinRpm = 0.8, CutRate = 1.1, HeatRate = 0.30, CoolRate = 0.45, MaxSpeed = 0.20, Tolerance = 0.012,
        AngleTolerance = 12.0,
        Fit = false,
    },
    ["reinforced"] = {
        Time = 120, Strikes = 3, SpinUp = 1.6, MinRpm = 0.85, CutRate = 0.8, HeatRate = 0.45, CoolRate = 0.40, MaxSpeed = 0.15, Tolerance = 0.010,
        AngleTolerance = 8.0,
        Fit = false,
    },
    ["electronic"] = {
        Mode = "digital",
        Time = 45, Strikes = 3, Digits = 5, Burst = 4, Speed = 0.6, SpeedStep = 0.08, Gap = 0.55, Window = 0.1,
    },
},
```

`Time` is the time limit in seconds and `Strikes` the number of mistakes allowed. You can optionally add `MinDuration` (ms) to a lock: the server rejects a cut or bypass finished faster than this. When left out, it is worked out from the lock's tuning.

***

### Crates

**Config.CrateHeightOffset** `number` (default: 1.25)

Height offset applied to crates spawned inside containers.

**Config.CrateLayouts** `table`

Crate presets that can spawn inside a container. `Tiers` lists which lock tiers the preset can spawn behind (leave out to allow every lock). `Chance` is weighted against the other presets of the same tier.

```lua theme={null}
["gun_cash"] = {
    Chance = 10,
    Tiers = {2},
    Crates = {
        {Type = "gun", Offset = vector4(0.84, -0.54, -1.1, 270.80)},
        {Type = "cash", Offset = vector4(-0.82, 0.63, -1.1, 90.82)},
    },
},
```

Included presets: `single_wooden`, `wooden_explosives`, `wooden_cash` (tier 1), `gun_cash`, `electronics_cash`, `electronics_explosive` (tier 2), `guns_explosive` (tiers 2–3), `guns_explosives`, `guns_cash` (tier 3).

**Config.CrateTypes** `table`

Each crate type defines its interaction, animation, models, required item, minigame, and loot table.

| Type | Required item | Loot |
| - | - | - |
| `wooden` | `weapon_crowbar` (10% break) | Pistols, shotgun, micro SMG, 9mm ammo, metal scrap |
| `gun` | `bag` | SMG, machine pistol, combat pistol, sawn-off, assault rifle |
| `explosive` | — | Sticky bombs or thermite |
| `electronics` | — | `x_phone`, `x_device`, `x_stethoscope`, `electronickit` |
| `cash` | — | 1,250 – 3,000 cash |

```lua theme={null}
["cash"] = {
    Label = "Search the cash box",
    Icon = "fas fa-money-bill",
    Animation = {Dict = "amb@prop_human_bum_bin@base", Anim = "base"},
    Progress = "searching_crate",
    Minigame = "cashbox",       -- Minigame step, false = no minigame
    Duration = 7000,
    Model = "sf_prop_sf_box_cash_01a",
    OpenedModel = "v_ind_cs_box01",
    ZOffset = 0.0,
    TargetZOffset = 0.3,
    RequiredItem = false,
    ItemBreakChance = 0,
    Loot = {
        Rolls = {min = 1, max = 1},
        Items = {
            {Name = "money", Chance = 100, Amount = {min = 1250, max = 3000}},
        },
    },
},
```

`Loot.Rolls` sets how many times the loot table is rolled. Each item has a `Chance` (%) and an `Amount` range.

***

### Security Guards

**Config.SecurityOptions** `table`

Applied to every hostile guard. Guard positions are set per location in `Config.Locations`.

```lua theme={null}
Config.SecurityOptions = {
    ["MaxHealth"] = 200,      -- 100-200 (100 = dead)
    ["Health"] = 200,
    ["Armour"] = 100,         -- 0-100
    ["CombatMovement"] = 2,   -- 0 stationary, 1 defensive, 2 offensive, 3 suicidal
    ["CombatRange"] = 1,      -- 0 near, 1 medium, 2 far
    ["Accuracy"] = 50,        -- 0-100
    ["CombatAbility"] = 2,    -- 0 poor, 1 average, 2 professional
    ["SeeingRange"] = 100.0,
    ["HearingRange"] = 100.0,
    ["Alertness"] = 3,
    ["CombatRadius"] = 150.0, -- Radius the guards look for players to fight
}
```

***

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