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

# Configuration

> Full reference for all configuration options in the TStudio Store Robbery resource

## config/config.lua

### Main Settings

**debug** `boolean` (default: false)

Shows polyzones created inside the game. Useful for testing zone placement.

**TestingMode** `boolean` (default: false)

Disables all minigames. Useful for testing the full robbery flow without completing minigame challenges.

**DrawtextButton** `number` (default: 38)

The key code used to trigger drawtext interactions. `38` is `[E]` by default.

**DrawTextZoneSize** `vector3` (default: vec3(0.8, 0.8, 2))

The size of the drawtext interaction zone.

**SpawnNetworkedPropsServerSide** `boolean` (default: true)

Spawns networked props server side. Set to `false` to spawn them client side instead.

**SpawnNetworkedPedsServerSide** `boolean` (default: true)

Spawns networked peds server side. Set to `false` to spawn them client side instead.

**MinimumPolice** `number` (default: 0)

Minimum number of police required online before a robbery can be started. Set to `0` to disable.

**PoliceJobs** `table` (default: \{"police"})

The jobs that count as police for the `MinimumPolice` check and dispatch alerts.

```lua theme={null}
PoliceJobs = {"police", "fbi"}
```

**RequiredPlayersNearby** `table`

Requires a minimum number of players nearby to start a robbery.

```lua theme={null}
RequiredPlayersNearby = {amount = 0, radius = 20.0}
```

Set `amount` to `0` to disable.

**TotalActiveRobberies** `number` (default: 0)

Maximum number of store robberies that can be active at the same time. Set to `0` to disable.

**DisableLoudApproach** `boolean` (default: false)

Disables the loud approach (threatening the clerk) as a way to start a robbery.

**DisableSilentApproach** `boolean` (default: false)

Disables the silent approach (fusebox, 24/7 stores only).

**DisableParticles** `boolean` (default: false)

Disables all particle effects during robberies.

**DisableRemovingWeapons** `boolean` (default: false)

Disables weapon removal during robberies. Only enable this if you use a weapon wheel resource.

**NotificationDuration** `number` (default: 2500)

Duration of the displayed notifications in milliseconds.

***

### Cooldowns & Limits

**Cooldown.Global** `boolean` (default: false)

When `true`, robbing one store puts all stores on cooldown. When `false`, each store has its own cooldown.

**Cooldown.Timer** `number` (default: 180)

Cooldown duration in minutes.

**Cooldown.PlayerCooldown** `number` (default: 0)

Per-player cooldown in minutes after completing a robbery. Set to `0` to disable.

**Limits.TotalRobberiesPerRestart** `table`

Maximum robberies per server restart (not per player), split by store type. Set each value to `0` to disable.

```lua theme={null}
TotalRobberiesPerRestart = {
    ['Stores247'] = 0,
    ['GasStations'] = 0,
    ['LiquorStores'] = 0,
}
```

**Limits.RobberiesPerPlayer** `table`

Maximum robberies a single player can complete per restart, split by store type. Set each value to `0` to disable.

```lua theme={null}
RobberiesPerPlayer = {
    ['Stores247'] = 0,
    ['GasStations'] = 0,
    ['LiquorStores'] = 0,
}
```

***

### Skill System

**SkillSystem** `boolean` (default: false)

Requires players to meet a minimum level from an integrated XP/skill system before starting a robbery. Must have an XP system configured in the bridge.

**MinimumLevel** `number` (default: 10)

Minimum level required to initiate a robbery. Only applies when `SkillSystem` is `true`.

***

### Dispatch

**Dispatch.Title** `string` (default: "Store Robbery")

Title shown in the dispatch alert.

**Dispatch.Message** `string` (default: "A store is being robbed")

Message body shown in the dispatch alert.

**Dispatch.Code** `string` (default: "10-70")

Radio code shown in the dispatch alert.

**Dispatch.Time** `number` (default: 5)

Time in seconds the dispatch alert remains visible. Not all dispatch systems support this.

**Dispatch.Blip** `table`

Blip settings for the dispatch map marker.

```lua theme={null}
Blip = {
    Text = 'Store Robbery',
    Color = 1,
    Sprite = 41,
    Scale = 0.8
}
```

**DispatchLocation** `table`

Controls which steps trigger the alarm and dispatch. `Loud` and `Silent` fire when the matching approach starts the robbery. Of the remaining entries, only one should be enabled.

```lua theme={null}
DispatchLocation = {
    ["Loud"] = true,      -- Starting the loud approach
    ["Silent"] = false,   -- Starting the silent approach

    ["Register"] = false,
    ["Clerk"] = false,    -- Threatening the clerk (after a silent start)
    ["Atm"] = true,
}
```

***

### Bonus Items

**Bonus.Status** `boolean` (default: false)

Enables or disables bonus item drops at the end of a robbery.

**Bonus.BonusChance** `number` (default: 15)

Percentage chance that any bonus item is given at all.

**Bonus.ItemCount** `number` (default: 1)

Number of items that can be given from the bonus items table.

**Bonus.Items** `table`

Table of possible bonus items. Each entry has a `Name`, `Chance` (%), and `Amount` range.

```lua theme={null}
Items = {
    {Name = "x_device", Chance = 30, Amount = {min = 1, max = 1}},
    {Name = "x_phone", Chance = 50, Amount = {min = 1, max = 1}},
    {Name = "x_stethoscope", Chance = 20, Amount = {min = 1, max = 1}},
}
```

***

### Evidence & Stress

**Evidence.Status** `boolean` (default: true)

Enables fingerprint evidence drops at the crime scene.

**Evidence.Chance** `number` (default: 50)

Percentage chance that fingerprint evidence is left behind.

**Stress.Status** `boolean` (default: true)

Enables the stress system. Stress is only applied when a minigame is failed.

**Stress.Chance** `number` (default: 90)

Percentage chance that stress is applied on a minigame fail.

**Stress.Amount** `table` (default: \{min = 1, max = 3})

The minimum and maximum amount of stress applied per failure.

***

### Required Items

**Items** `table`

Maps logical item names to your inventory item names.

```lua theme={null}
Config.Items = {
    ["Circuit"] = "x_circuittester",
    ["Lockpick"] = "advancedlockpick",
    ["Harddrive"] = "x_harddrive",
    ["Device"] = "x_device",
    ["Key"] = "storekey",
    ["Boltcutter"] = "x_boltcutter",
}
```

**ItemsBreak** `table`

Break chance (%) for each item when used during a robbery.

```lua theme={null}
Config.ItemsBreak = {
    ["Circuit"] = 0,
    ["Lockpick"] = 0,
    ["Device"] = 0,
    ["Boltcutter"] = 0,
}
```

***

### TStudio Minigames

`Config.Minigames` tunes the built-in minigames and screens used by the TStudio store flow (stock room laptop, office computer, keypads, gate, electrical box, and ATM).

**Minigames.Laptop.Game** `table`

Hacking minigame on the stock room laptop.

```lua theme={null}
Laptop = {
    Game = {
        Rounds = 3,     -- Rounds
        Words = 15,     -- Codes on the screen
        Time = 15,      -- (Seconds) Per round
        Mistakes = 3,   -- Mistakes allowed
        Shuffle = 2.5,  -- (Seconds) Between target moves
    },
},
```

**Minigames.Computer.Game** `table`

Safe dial minigame on the office computer.

```lua theme={null}
Computer = {
    Game = {
        Numbers = 3,    -- Numbers in the combination
        Speed = 22,     -- Dial speed
        SpeedUp = 8,    -- Speed increase per number
        Window = 4,     -- Hit tolerance
        Mistakes = 2,   -- Mistakes allowed
        Time = 15,      -- (Seconds) Per number
    },
},
```

**Minigames.OfficeCodeDecoys** `number` (default: 3)

Number of fake office codes shown on the laptop alongside the real one.

**Minigames.KeypadLock** `table`

Locks a keypad out after too many wrong codes. Set `Attempts` to `0` to disable.

```lua theme={null}
KeypadLock = {
    Attempts = 6,   -- Wrong codes before lockout
    Lockout = 120,  -- (Seconds) Lockout time
},
```

**Minigames.Gate** `table`

Stock cage gate. Cutting the lock while the power is still on tases the player.

```lua theme={null}
Gate = {
    TaseTime = 5000, -- (ms) Tase duration
    Damage = 25,     -- Tase damage
},
```

**Minigames.ElecBox.Game** `table`

Electrical box breaker minigame used to cut the power to the gate.

```lua theme={null}
ElecBox = {
    Game = {
        Phases = 3,        -- Phases
        Pick = 3,          -- Breakers in the first load, +1 per phase
        MaxAmps = 9,       -- Max amps per breaker
        AmpsPerPhase = 3,  -- Max amps increase per phase
        Locked = true,     -- Lock one breaker from phase 2
        Mistakes = 2,      -- Mistakes allowed
        InputTime = 18,    -- (Seconds) Per phase
    },
},
```

**Minigames.Atm** `table`

ATM memory hack.

```lua theme={null}
Atm = {
    Game = {
        Rounds = 3,       -- Rounds
        Length = 4,       -- Tiles in the first round, +1 per round
        Mistakes = 2,     -- Mistakes allowed
        Flash = 550,      -- (ms) Per tile
        InputTime = 12,   -- (Seconds) Per round
    },
    HackTime = 6,    -- (Seconds) Hack duration
    ClickTime = 20,  -- (Seconds) Time to press FORCE DISPENSE
},
```

**Minigames.Durations.Keypad** `number` (default: 3000)

Progress bar duration (ms) when using a keypad.

**Minigames.AccentColor** `string` (default: "#e30914")

Accent colour of the laptop and computer screens.

***

### Rewards

Register, ATM, and safe rewards are configured per store type. Each table follows the same format.

**Cash** `boolean` (default: true)

Set to `true` to give money directly. Set to `false` to give a cash item instead.

**CashItem** `string` (default: 'markedbills')

The item name used when `Cash` is `false`.

**StackAmount** `table`

The minimum and maximum cash or item amount per reward.

```lua theme={null}
StackAmount = {min = 3000, max = 6000}
```

**ItemInfo** `boolean | table` (default: false)

Optional item metadata. Used if `markedbills` or similar items carry random value data in their info table.

**Reward tables by store type:**

| Table | Default amount | Description |
| - | - | - |
| `Config.RegisterStores247` | 3,000 – 6,000 | Register loot from 24/7 stores |
| `Config.RegisterGasStations` | 1,500 – 3,000 | Register loot from gas stations |
| `Config.RegisterLiquorStores` | 500 – 1,500 | Register loot from liquor stores |
| `Config.AtmStores247` | 1,250 – 2,500 | ATM loot from 24/7 stores |
| `Config.AtmGasStations` | 1,000 – 2,000 | ATM loot from gas stations |
| `Config.SafeStores247` | 10,000 – 15,000 | Full 24/7 safe (robbery started silently) |
| `Config.SafeCorruptStores247` | 6,000 – 10,000 | Partial 24/7 safe (robbery started loud) |
| `Config.SafeGasStations` | 4,500 – 6,000 | Safe loot from gas stations |
| `Config.SafeLiquorStores` | 3,000 – 4,500 | Safe loot from liquor stores |

**Shelf loot** is configured in `Config.RewardShelf`. `Config.MaxItems` controls how many items can be taken from each shelf.

***

### Store Locations

Enable or disable store types and individual locations using these tables:

* `Config.Stores247` — 24/7 supermarkets (9 locations, TStudio flow)
* `Config.GasStations` — Gas stations (5 locations)
* `Config.LiquorStores` — Liquor stores (5 locations)

Each enabled location has a full entry in `Config.Stores` with coordinates, interactions, NPC settings, reset timers, and per-store overrides. Use the store key (e.g. `"Strawberry"`, `"Davis"`) when calling exports.

Gas station and liquor store entries are defined inside map checks, so the right layout loads for the map you run:

| Store type | Map started | Flow |
| - | - | - |
| 24/7 Stores | — | TStudio |
| Gas Stations | `tstudio_gasstations` / `tstudio_ltd` | TStudio |
| Gas Stations | `cfx-fm-ltd-gasoline` | Classic |
| Gas Stations | None (default GTA) | Classic |
| Liquor Stores | `cfx-mxc-liquorstore` | Classic |
| Liquor Stores | None (default GTA) | Classic |

Stores using the TStudio flow have `Flow = "TStudio"` in their entry. See the [FAQs](https://docs.projectx.gg/resources/store-robbery-tstudio/faqs.md#how-does-the-tstudio-flow-work) for a breakdown of both flows.

**Config.Stores\[location]** `table`

Key fields of a TStudio store entry:

| Field | Description |
| - | - |
| `Flow` | `"TStudio"` to use the TStudio flow |
| `Reset` | Minutes until the store resets |
| `AlarmCoords` | Where the alarm sound plays |
| `NpcCoords` / `NpcModel` | Clerk position and model |
| `StickyNote` | Position of the sticky note with the staff PIN |
| `SafeDoor` / `SafeCash` | Office safe door and cash prop |
| `ElecBoxProp` | Electrical box prop (stores with a stock cage gate) |
| `ComputerScreen` | Position and size of the office computer screen |
| `Interactions` | Interaction zones for each step |
| `Zone` | Polyzone points around the store |

> [!NOTE]
>
> The server console warns on start if an enabled location is missing from `Config.Stores` or is missing an interaction step that other stores of the same type have. Doors are listed in `Config.DoorList`, below the "do not touch" line.

***

### Other Settings

**ComputerPassword** `table`

Controls the safe code range and UI text for the office computer step in classic-flow stores.

```lua theme={null}
ComputerPassword = {
    ["Password"] = {min = 10000, max = 99999},
    ["Header"] = "Safe Code",
    ["Content"] = "Code",
    ["Input"] = {Title = 'Code', Label = 'Password', Description = 'Enter the code', Icon = 'fas fa-lock'},
}
```

**Config.Sounds** `table`

Alarm sound settings.

```lua theme={null}
Config.Sounds = {
    ["AlarmDuration"] = 15,                         -- (Minutes) How long the alarm lasts
    ["AudioName"] = "Alarm_Interior",
    ["AudioRef"] = "DLC_H3_FM_FIB_Raid_Sounds",
    ["Range"] = 10.0,                               -- How far the alarm can be heard
}
```

**Config.Weapons** `table`

Weapons allowed for threatening the clerk. Add or remove weapon hashes as needed.

**Step durations** (`FuseboxDuration`, `RegisterDuration`, `ServerDuration`, `Computer1Duration`, `Computer2Duration`, `DoorDuration`, `AtmDuration`, `ShelfDuration`, `SafeDuration`) control how long progress bars run for each interaction step, in milliseconds.

***

### Logs

Configured in `config/logs.lua`.

**Enable** `boolean` (default: false)

Enables or disables the logging system.

**APIKey** `string` (default: "")

Your Discord webhook URL, or your Fivemerr/Fivemanage API key.

**FivemanageDataset** `string` (default: "default")

The Fivemanage dataset to log activity to. Leave as `"default"` unless you have a specific dataset configured.


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