> ## 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 K4MB1 Paleto Bank Robbery resource

## Installation Steps

**1. Install required dependencies**

> [!WARNING]
>
> Verify all dependencies below are started **before** this script in your `server.cfg`.

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

> [card] [K4MB1 Paleto Map](https://www.k4mb1maps.com/product/4881060)
>
> Required map by K4MB1

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

**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/1Z9ZSLaOXaaq2Grw9kOij1XUkrdALA4Mc/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.

**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 settings to match your server. The bridge handles framework, inventory, dispatch, and interaction automatically if set to `'auto'`.

**6. Add to server.cfg**

Make sure dispatch starts before the bridge, and the bridge and minigames start before the robbery script.

```cfg theme={null}
ensure ox_lib
ensure projectx-bridge

ensure boii_minigames
ensure bl_ui
ensure SN-Hacking
ensure pure-minigames
ensure xdecrypto

ensure projectx-paletobankrobbery-k4mb1
```

## Items Required

### Items Required from Outside the Robbery

The `paletocardtwo` must be obtained externally (e.g. from another robbery or side mission) before the robbery can be started.

* `paletocardtwo`

### Items Required from Shop/Black Market

* `x_device`
* `x_phone`
* `hackcard`
* `decryptor`
* `pliers`
* `bag`

> [!NOTE]
>
> The rest of the items (`paletocardone`, `paleto_key`) are obtained within the robbery itself.

### Item Configuration

> [tab] ox\_inventory
>
> ```lua theme={null}
> ["x_phone"] = {
>     label = "x Phone",
>     weight = 300,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["paletocardone"] = {
>     label = "Paleto Card A",
>     weight = 0,
>     stack = false,
>     close = false,
>     description = "A security card for Paleto Bank",
> },
> ["paletocardtwo"] = {
>     label = "Paleto Card B",
>     weight = 0,
>     stack = false,
>     close = false,
>     description = "A security card for Paleto Bank",
> },
> ["pliers"] = {
>     label = "Pliers",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "A pair of pliers",
> },
> ["x_device"] = {
>     label = "X Device",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["bag"] = {
>     label = "Duffel Bag",
>     weight = 250,
>     stack = false,
>     close = false,
>     description = "Duffel bag",
> },
> ["hackcard"] = {
>     label = "Hackcard",
>     weight = 50,
>     stack = false,
>     close = false,
>     description = "Hack card",
> },
> ["decryptor"] = {
>     label = "Decrypt-o-matic",
>     weight = 300,
>     stack = false,
>     close = false,
>     description = "Decrypt PIN based encryptions",
> },
> ["paleto_key"] = {
>     label = "Paleto Bank Key",
>     weight = 100,
>     stack = false,
>     close = false,
>     description = "Paleto Bank Key",
> },
> ```

> [tab] qb-inventory
>
> ```lua theme={null}
> ['paletocardone'] = {['name'] = 'paletocardone', ['label'] = 'Paleto Card A', ['weight'] = 0, ['type'] = 'item', ['image'] = 'paletocardone.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'A security card for Paleto Bank'},
> ['paletocardtwo'] = {['name'] = 'paletocardtwo', ['label'] = 'Paleto Card B', ['weight'] = 0, ['type'] = 'item', ['image'] = 'paletocardtwo.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'A security card for Paleto Bank'},
> ['pliers'] = {['name'] = 'pliers', ['label'] = 'Pliers', ['weight'] = 200, ['type'] = 'item', ['image'] = 'pliers.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Pliers..?'},
> ['paleto_key'] = {['name'] = 'paleto_key', ['label'] = 'Paleto Key', ['weight'] = 50, ['type'] = 'item', ['image'] = 'paleto_key.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Key!'},
> ['x_device'] = {['name'] = 'x_device', ['label'] = 'X Device', ['weight'] = 50, ['type'] = 'item', ['image'] = 'x_device.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'},
> ['hackcard'] = {['name'] = 'hackcard', ['label'] = 'Hackcard', ['weight'] = 50, ['type'] = 'item', ['image'] = 'hackcard.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Hack card'},
> ['decryptor'] = {['name'] = 'decryptor', ['label'] = 'decryptor', ['weight'] = 750, ['type'] = 'item', ['image'] = 'decryptomatic.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Decyrptomatic'},
> ['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'] = '?????????'},
> ```


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