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

# Installation

> Step by step instructions to install the Container Robbery resource

## Installation Steps

**1. Install required dependencies**

> [!WARNING]
>
> Verify all dependencies below are started **before** this script in your `server.cfg`. Start order should be: Dispatch → Bridge → Minigames → Script.

> [card] [ox\_lib](https://github.com/CommunityOx/ox_lib/releases/latest)
>
> Download ox\_lib

> [card] [projectx-bridge](https://docs.projectx.gg/resources/bridge/installation.md)
>
> Required Project X Bridge

> [!NOTE]
>
> **Optional:** `projectx-ui` is used for the fixer's cinematic dialog when `Config.Dialog = "projectx"`. Without it running, the fixer falls back to a regular ox\_lib alert dialog.

**2. Install minigames**

Download the minigames zip and place each resource into your standalone or dependencies folder.

> [card] [Minigames](https://drive.google.com/file/d/1vCaimdM8tobBH9BFqcSyPySUuDFFsFv6/view?usp=sharing)
>
> Download and place in your standalone or minigames folder

> [!WARNING]
>
> Make sure the minigames are **not** in the same folder as the robbery script.

**3. Extract and place the resource**

Extract the script from the zip file and place it into your scripts folder.

> [!NOTE]
>
> No map is required. The yards use the default GTA port and cargo ships, and the electronic lock prop is streamed by the script itself.

**4. Add items to your inventory**

Add the required items and their images to your inventory resource. See the [items section](#items-required) below for the full list.

> [!NOTE]
>
> Item images done by [Artwork Inventory](https://discord.gg/Z2awpnXKdw) - Use code **ProjectX** for 10% off!

**5. Configure the resource**

Open `config/config.lua` and adjust the fixer location, yards, containers, lock types, crates, and loot to match your server. The bridge handles framework, inventory, dispatch, and interaction automatically if set to `'auto'`.

**6. Add to server.cfg**

Make sure the bridge, ox\_lib, your target, dispatch, inventory, and minigames are all started before the robbery script.

```cfg theme={null}
ensure ox_lib
ensure projectx-bridge
ensure projectx-ui # optional, for the fixer dialog

ensure bl_ui
ensure lightsout

ensure projectx-containerrobbery
```

## Items Required

### Items Required from Shop/Black Market

* `x_grinder` — cuts padlocks and reinforced padlocks
* `x_device` — hacks electronic locks
* `bag` — needed to crack gun crates
* `weapon_crowbar` — needed to pry open wooden crates

### Items Obtained During the Robbery

* `container_pass` — the fixer hands one over with every contract. Show it to the gate guard before going into the yard, or the alarm goes off. See `Config.GatePass`.
* `x_phone` — the fixer's price when `Config.Fixer.Price.Type = "item"`. Also found in electronics crates.
* `x_stethoscope` — found in electronics crates, used by other Project X robberies.

### Loot Items

The crates (`Config.CrateTypes`) also give these. They are standard items on most servers. Add any you are missing or swap them in the config:

* `electronickit`
* `thermite`
* `metalscrap`
* `ammo-9` (ox\_inventory ammo, use your inventory's 9mm ammo item otherwise)
* `weapon_pistol`, `weapon_snspistol`, `weapon_combatpistol`, `weapon_machinepistol`, `weapon_microsmg`, `weapon_smg`, `weapon_sawnoffshotgun`, `weapon_pumpshotgun`, `weapon_assaultrifle`, `weapon_stickybomb`

### Item Configuration

> [tab] ox\_inventory
>
> ```lua theme={null}
> ["x_grinder"] = {
>     label = "X Grinder",
>     weight = 1000,
>     stack = false,
>     close = false,
>     description = "A high-tech grinding machine used for breaking down locks.",
> },
> ["x_device"] = {
>     label = "X Device",
>     weight = 300,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["x_phone"] = {
>     label = "X Phone",
>     weight = 50,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["bag"] = {
>     label = "Duffel Bag",
>     weight = 400,
>     stack = false,
>     close = false,
>     description = "Duffel bag",
> },
> ["x_stethoscope"] = {
>     label = "X Stethoscope",
>     weight = 200,
>     stack = false,
>     close = false,
>     description = "click click",
> },
> ["container_pass"] = {
>     label = "Container Pass",
>     weight = 10,
>     stack = false,
>     close = true,
>     description = "A yard access pass. The guard at the gate will want to see it.",
> },
> ```

> [tab] qb-inventory
>
> ```lua theme={null}
> ['x_grinder'] = {['name'] = 'x_grinder', ['label'] = 'X Grinder', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'x_grinder.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'A high-tech grinding machine used for breaking down locks.'},
> ['x_device'] = {['name'] = 'x_device', ['label'] = 'X Device', ['weight'] = 300, ['type'] = 'item', ['image'] = 'x_device.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '?????????'},
> ['x_phone'] = {['name'] = 'x_phone', ['label'] = 'X Phone', ['weight'] = 50, ['type'] = 'item', ['image'] = 'x_phone.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '?????????'},
> ['bag'] = {['name'] = 'bag', ['label'] = 'Duffel Bag', ['weight'] = 400, ['type'] = 'item', ['image'] = 'bag.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Duffel bag'},
> ['x_stethoscope'] = {['name'] = 'x_stethoscope', ['label'] = 'X Stethoscope', ['weight'] = 200, ['type'] = 'item', ['image'] = 'x_stethoscope.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'click click'},
> ['container_pass'] = {['name'] = 'container_pass', ['label'] = 'Container Pass', ['weight'] = 10, ['type'] = 'item', ['image'] = 'container_pass.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A yard access pass. The guard at the gate will want to see it.'},
> ```


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