> ## 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 Container Robbery 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, logs, and global cooldowns. See the [Bridge Installation](https://docs.projectx.gg/resources/bridge/installation.md) page for setup instructions.
>
> When you purchase Container Robbery, the `projectx-bridge` asset is automatically delivered to your CFX portal.

> [accordion] Do I need a map?
>
> No. All four yards (Port of South Los Santos, Daisy-Lee, Ocean Motion, and Elysian Island Warehouse) use default GTA locations. The electronic lock prop is streamed by the script.

> [accordion] Is projectx-ui required?
>
> No. `projectx-ui` is only used for the fixer's cinematic dialog when `Config.Dialog = "projectx"`. If it isn't started, the fixer falls back to an ox\_lib alert dialog automatically.

> [accordion] How does a robbery work?
>
> There are two ways to start a robbery:
>
> **Fixer contract**
>
> **1. Buy a contract**
>
> Talk to the fixer and pay the contract price (`Config.Fixer.Price`). The fixer marks the contract containers on your map (only you see the blips) and hands over a `container_pass`.
>
> **2. Check in at the gate**
>
> Show the pass to the gate guard at the yard entrance. This clears your whole crew. Entering the detection zone or robbing a container without checking in sets off the alarm and the guards turn hostile.
>
> **3. Open the containers**
>
> Cut padlocks and reinforced padlocks with an `x_grinder`, or bypass electronic locks with an `x_device`. Each cut has a small chance (`DispatchChanceOnCut`) of alerting the police.
>
> **4. Loot the crates**
>
> Open the crates inside each container. Wooden crates need a `weapon_crowbar`, gun crates need a `bag`.
>
> The contract expires after `Config.Fixer.ExpireTime` minutes if not every container was robbed.
>
> **Loud approach**
>
> Walk into a yard's detection zone without a contract. The alarm goes off, police are alerted, and the security guards turn hostile. A random set of containers (`ActiveContainers`) can then be robbed. With `AlarmOnContainer = true`, the robbery starts quietly and the alarm only triggers once someone starts robbing a container.

> [accordion] What are decoy containers?
>
> Decoys look exactly like real containers, with the same locks and crates. Their crates are empty (except a small chance of bait loot), and opening one silently alerts the police after `Config.Decoy.DispatchDelay` seconds. No alarm plays and no guards spawn. Configure or disable them in `Config.Decoy`.

> [accordion] What determines the loot in a container?
>
> Each active container rolls a lock from `Config.LockTypes`. The lock's `Tier` decides which crate layouts from `Config.CrateLayouts` can spawn behind it. Padlocks (tier 1) lead to wooden crates, reinforced padlocks (tier 2) to gun, electronics, and cash crates, and electronic locks (tier 3) to the best gun, explosive, and cash layouts.

> [accordion] How do I change which minigames are used?
>
> Open `opensource/client/client.lua` and find the `projectx-containerrobbery:client:Minigames` callback. Each lock and crate step has its own `elseif` block where you can swap the minigame export for any resource you prefer. You can also return `true` inside any block to skip that minigame entirely.
>
> Locks use the built-in grinder and bypass UIs by default. Set `Config.Cutter.Enabled = false` to use the lock minigames from the callback instead. See the [Open Source](https://docs.projectx.gg/resources/container-robbery/opensource.md) page for details.

> [accordion] How do I reset the heist manually?
>
> Use the `/projectxcontainerrobbery` 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-containerrobbery']:Reset()
> ```
>
> See the [Commands](https://docs.projectx.gg/resources/container-robbery/commands.md) and [Exports](https://docs.projectx.gg/resources/container-robbery/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`. This applies to both the fixer contract and the loud approach.
>
> ```lua theme={null}
> MinimumPolice = 2,
> PoliceJobs = {"police", "fbi"},
> ```

> [accordion] How do I stop police from setting off the alarm?
>
> Add their jobs to `IgnoredJobs`. Players with these jobs never trigger a detection zone.
>
> ```lua theme={null}
> IgnoredJobs = {"police", "ambulance"},
> ```

> [accordion] How do I disable one of the approaches?
>
> Set `DisableFixerContracts = true` to remove the fixer, so robberies can only start through a detection zone. Set `DisableLoudApproach = true` so walking into a detection zone no longer starts a robbery.

> [accordion] How do I make the fixer charge an item instead of cash?
>
> Set `Config.Fixer.Price.Type` to `"item"` and choose the `Item` and `Amount`:
>
> ```lua theme={null}
> Price = {
>     Type = "item",
>     Amount = 1,
>     Item = "x_phone",
> },
> ```

> [accordion] How do I limit the fixer to certain yards?
>
> List the yard keys in `Config.Fixer.Locations`. Leave it empty to use all of them.
>
> ```lua theme={null}
> Locations = {"port", "elysian-island"},
> ```

> [accordion] How do I gate robberies 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 yard?
>
> Copy an existing entry in `Config.Locations`, rename the key, and update the `Alarm`, `Zones`, `Containers`, `GateGuard`, and `SecurityGuards`. Enable `debug` to see the zones in game while placing them. Keep the `GateGuard` outside the `Detection` zone so players can check in without setting off the alarm.

## Troubleshooting

> [accordion] The script won't start
>
> Make sure you have all required dependencies started before the script in your `server.cfg` (`projectx-bridge`, `ox_lib`, and minigames).

> [accordion] Minigames fail immediately
>
> Verify all minigame resources (`bl_ui`, `lightsout`) are started and placed outside the robbery script folder. A missing minigame resource prints a warning in the F8 console and counts the step as failed.

> [accordion] The guards opened fire during a contract
>
> The contract owner or their crew entered the detection zone or started robbing a container before checking in with the gate guard. Show the `container_pass` to the guard at the yard entrance first. Failing an electronic lock hack also goes loud when `FailGoesLoud = true`.

> [accordion] The fixer kept my pass card
>
> If your inventory is full when paying, the fixer keeps the pass and puts you on the gate guard's list instead. Talk to the gate guard as usual to check in.

> [accordion] Loot items are missing
>
> Make sure every item in `Config.CrateTypes` exists in your inventory. Replace `ammo-9` with your inventory's 9mm ammo item if you don't use ox\_inventory.


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