> ## 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 TStudio Store 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

**2. Install the store maps**

The 24/7 stores are built for the **TStudio 24/7** interiors. Gas stations and liquor stores adapt to whichever map you run:

| Store type | Supported maps | Detected resource |
| - | - | - |
| 24/7 Stores | TStudio 24/7 | — |
| Gas Stations | TStudio LTD | `tstudio_gasstations` or `tstudio_ltd` |
| Gas Stations | FM LTD Gasoline | `cfx-fm-ltd-gasoline` |
| Gas Stations | Default GTA (no map) | — |
| Liquor Stores | MXC Liquor Store | `cfx-mxc-liquorstore` |
| Liquor Stores | Default GTA (no map) | — |

> [card] [TStudio Maps](https://shop.tstudio3d.com)
>
> TStudio store

> [!NOTE]
>
> The config picks the right gas station and liquor store layout automatically based on which map resource is started. No manual switching is needed.

**3. Install minigames**

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

> [card] [Minigames](https://drive.google.com/file/d/1mPvEB0JnQS74QvFDlT52AiXB_rwvDVtE/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.

**4. Extract and place the resource**

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

**5. 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!

**6. 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'`.

**7. Add to server.cfg**

Make sure the store maps, 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 bl_ui
ensure pure-minigames
ensure SN-Hacking
ensure pd-safe

ensure projectx-storerobbery-tstudio
```

## Items Required

### Items Required from Outside the Robbery

The `x_harddrive` must be obtained externally (e.g. from another robbery or side mission). It is used to log in to the stock room laptop in TStudio stores, and at the server step in FM/default gas stations.

* `x_harddrive`

### Items Required from Shop/Black Market

* `x_device`
* `x_circuittester`
* `x_boltcutter`
* `advancedlockpick`
* `x_stethoscope`

### Items Obtained During the Robbery

* `storekey` — handed over by the clerk once they have been threatened. TStudio stores use it at the office keypad; classic-flow stores use it on the safe.

> [!NOTE]
>
> The rest of the items are obtained within the robbery itself.

### Item Configuration

> [tab] ox\_inventory
>
> ```lua theme={null}
> ["x_device"] = {
>     label = "X Device",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["x_circuittester"] = {
>     label = "X Circuit Tester",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["x_harddrive"] = {
>     label = "X Harddrive",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["storekey"] = {
>     label = "Store Key",
>     weight = 125,
>     stack = false,
>     close = false,
>     description = "?????????",
> },
> ["advancedlockpick"] = {
>     label = "Advanced Lockpick",
>     weight = 500,
>     stack = true,
>     close = true,
>     description = "If you lose your keys a lot this is very useful... Also useful to open your beers",
> },
> ["x_stethoscope"] = {
>     label = "X Stethoscope",
>     weight = 200,
>     stack = false,
>     close = false,
>     description = "click click",
> },
> ["x_boltcutter"] = {
>     label = "X Bolt Cutter",
>     weight = 1500,
>     stack = false,
>     close = false,
>     description = "Snip",
> },
> ```

> [tab] qb-inventory
>
> ```lua theme={null}
> ['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'] = '?????????'},
> ['x_circuittester'] = {['name'] = 'x_circuittester', ['label'] = 'X Circuit Tester', ['weight'] = 200, ['type'] = 'item', ['image'] = 'x_circuittester.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '????'},
> ['x_harddrive'] = {['name'] = 'x_harddrive', ['label'] = 'X Hard Drive', ['weight'] = 200, ['type'] = 'item', ['image'] = 'x_harddrive.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '????'},
> ['storekey'] = {['name'] = 'storekey', ['label'] = 'Store Key', ['weight'] = 200, ['type'] = 'item', ['image'] = 'storekey.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = '????'},
> ['advancedlockpick'] = {['name'] = 'advancedlockpick', ['label'] = 'Advanced Lockpick', ['weight'] = 500, ['type'] = 'item', ['image'] = 'advancedlockpick.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'If you lose your keys a lot this is very useful... Also useful to open your beers'},
> ['x_stethoscope'] = {['name'] = 'x_stethoscope', ['label'] = 'X Stethoscope', ['weight'] = 200, ['type'] = 'item', ['image'] = 'x_stethoscope.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'click click'},
> ['x_boltcutter'] = {['name'] = 'x_boltcutter', ['label'] = 'X Bolt Cutter', ['weight'] = 1500, ['type'] = 'item', ['image'] = 'x_boltcutter.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Snip'},
> ```


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