> ## 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 TStudio Store 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 TStudio Store Robbery, the `projectx-bridge` asset is automatically delivered to your CFX portal.

> [accordion] What dispatch systems are supported?
>
> The bridge supports 25+ dispatch systems including PS Dispatch, CodeSign, LB Tablet, FD Dispatch, Wasabi MDT, Sonoran CAD, and many more. Set `Dispatch` to `'auto'` in the bridge config for automatic detection. See the [Bridge Overview](https://docs.projectx.gg/resources/bridge/overview.md) for the full list.

> [accordion] What store types and locations are included?
>
> The script supports three store types with tier-based loot:
>
> * **24/7 Supermarkets** — 9 locations (TStudio 24/7 interiors)
> * **Gas Stations** — 5 locations (TStudio LTD, FM LTD Gasoline, or default GTA)
> * **Liquor Stores** — 5 locations (MXC Liquor Store or default GTA)
>
> Enable or disable individual locations in `Config.Stores247`, `Config.GasStations`, and `Config.LiquorStores`.

> [accordion] Which map do I need for the gas stations and liquor stores?
>
> None is strictly required. The config checks which map resource is started and loads the matching layout:
>
> * **Gas stations**: `tstudio_gasstations` or `tstudio_ltd` → TStudio flow. `cfx-fm-ltd-gasoline` → classic flow on the FM layout. Neither → classic flow on the default GTA gas stations.
> * **Liquor stores**: `cfx-mxc-liquorstore` → MXC layout. Otherwise → default GTA liquor stores.
>
> Make sure the map is started **before** the robbery script, otherwise the default layout is loaded.

> [accordion] How does the TStudio flow work?
>
> The 24/7 stores and the TStudio LTD gas stations use a multi-room flow built around the TStudio interiors:
>
> **1. Start the robbery**
>
> **Silent** (24/7 only): test the fusebox with an `x_circuittester`. **Loud**: threaten the clerk with an allowed weapon.
>
> **2. Threaten the clerk**
>
> The clerk empties the register for you and hands over the `storekey`. A sticky note with the staff PIN appears at the counter. The shelves and ATM can now be robbed (the ATM needs an `x_device`).
>
> **3. Enter the staff PIN**
>
> Read the sticky note and enter the PIN on the staff door keypad.
>
> **4. Cut the power and the stock cage lock**
>
> In stores with a stock cage, cut the power at the electrical box, then cut the gate lock with an `x_boltcutter`. Cutting the lock with the power still on tases you.
>
> **5. Hack the stock room laptop**
>
> Log in with an `x_harddrive`. The laptop shows the office code mixed in with decoy codes.
>
> **6. Open the office**
>
> Enter the office code on the office keypad. This consumes the `storekey`.
>
> **7. Crack the safe**
>
> Log in to the office computer and complete the safe hack. The safe door opens and you can grab the cash.
>
> The TStudio LTD gas stations have no fusebox, electrical box, or stock cage, so they start loud and go straight from the staff door to the laptop. Banham Canyon is a small 24/7 with only the clerk, ATM, and shelves.

> [accordion] What is the difference between loud and silent approaches?
>
> The **loud approach** starts by threatening the clerk with a weapon from `Config.Weapons`. On 24/7 stores, a loud start only pays out the partial safe (`Config.SafeCorruptStores247`).
>
> The **silent approach** (24/7 only) starts at the fusebox with an `x_circuittester`. The clerk still has to be threatened afterwards, but the safe pays out in full (`Config.SafeStores247`).
>
> Dispatch timing for each approach is controlled by `DispatchLocation` in `config/config.lua`.

> [accordion] How does the classic flow work?
>
> The FM/default gas stations and all liquor stores use the classic flow from the other Project X store robberies: lockpick the register, threaten the clerk for the `storekey`, hack the ATM with an `x_device`, and open the safe. Gas stations also have a server (requires an `x_harddrive`) and two computer steps that reveal the safe code.

> [accordion] How do I change which minigames are used?
>
> Open `opensource/client/client.lua` and find the `Minigame(Step)` function. Each robbery 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.
>
> The TStudio keypads, laptop, office computer, electrical box, and ATM screens are built in and tuned through `Config.Minigames`. See the [Open Source](https://docs.projectx.gg/resources/store-robbery-tstudio/opensource.md) page for the full function and a table of the default minigame assignments.

> [accordion] How do I reset a store manually?
>
> Use the `/projectxstore` in-game command (requires admin permissions) to reset the nearest store, or call the `Reset(location)` server export from another resource:
>
> ```lua theme={null}
> exports['projectx-storerobbery-tstudio']:Reset('Strawberry')
> ```
>
> See the [Commands](https://docs.projectx.gg/resources/store-robbery-tstudio/commands.md) and [Exports](https://docs.projectx.gg/resources/store-robbery-tstudio/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`.
>
> ```lua theme={null}
> MinimumPolice = 2,
> PoliceJobs = {"police", "fbi"},
> ```

> [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 make the TStudio minigames easier or harder?
>
> Adjust `Config.Minigames` in `config/config.lua`. Each built-in game has its own table: `Laptop`, `Computer`, `ElecBox`, and `Atm`. You can also change the keypad lockout (`KeypadLock`), the number of decoy office codes (`OfficeCodeDecoys`), and the tase damage at the gate (`Gate`).

> [accordion] How do I set up bonus items at the end of a robbery?
>
> Enable `Bonus.Status` and configure the `Bonus.Items` table in `config/config.lua`. Each item has a `Chance` percentage and an `Amount` range.
>
> ```lua theme={null}
> Bonus = {
>     Status = true,
>     BonusChance = 15,
>     ItemCount = 1,
>     Items = {
>         {Name = "x_device", Chance = 30, Amount = {min = 1, max = 1}},
>     }
> }
> ```

> [accordion] How do I use global vs per-store cooldowns?
>
> Set `Cooldown.Global` to `true` to lock all stores when one is robbed. Set it to `false` (the default) for individual per-store cooldowns. Adjust the duration with `Cooldown.Timer` (in minutes).

## 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`, your store maps, and minigames).

> [accordion] Minigames fail immediately
>
> Verify all minigame resources (`bl_ui`, `pure-minigames`, `SN-Hacking`, `pd-safe`) are started and placed outside the robbery script folder. The bridge's `MinigameCheck` will return `false` if a minigame resource is missing.

> [accordion] Gas stations use the wrong layout
>
> The gas station layout is chosen when the config loads. Start `tstudio_gasstations` / `tstudio_ltd` (or `cfx-fm-ltd-gasoline`) **before** `projectx-storerobbery-tstudio`, then restart the robbery script.

> [accordion] Doors don't unlock or the console warns that a door was not found
>
> The script looks up each door by model and coordinates from `Config.DoorList`. A warning like `Door 1 of Strawberry not found` means the door model or position doesn't match your map version. Check the door entry for that store and make sure the TStudio map is started before the script.

> [accordion] The console warns about a missing interaction step
>
> On start, the server compares every enabled store of the same type. If one store is missing an interaction that others have, it prints a warning. This is expected for Banham Canyon, which has no back room. For custom stores, add the missing interaction or disable the location.


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