Gabz Store Robbery

Gabz Store Robbery

โ‚ฌ15.00

Add to Basket

# ๐Ÿšœ Farm Store Robbery Script โ€” Gabz Edition (README)

Thank you for choosing the Farm Store Robbery script for your FiveM server! This package provides an immersive, configurable store-robbery experience (Gabz locations & props supported) with extensive per-interaction options, minigame hooks, loot tables, and police dispatch integration. ๐ŸŽญ๐Ÿ’ฐ

---

## โš ๏ธ Important Notice (Dependencies)

To ensure the script works properly you **must** install the following:

- community_bridge (required) ๐Ÿ”— ย 

ย  <https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge>

- ox_lib (required) ๐Ÿ”— ย 

ย  <https://github.com/overextended/ox_lib>

Optional / recommended for vanilla experience (minigames & UI):

- boii_minigames (minigame implementations) ๐ŸŽฎ

ย  <https://github.com/boiidevelopment/boii_minigames>

- bl_ui (UI used by some minigames) ๐Ÿ–ผ๏ธ ย 

ย  <https://github.com/Byte-Labs-Studio/bl_ui>

  • lockpick (lockpick minigame) ๐Ÿ”“ ย 

ย  <https://github.com/baguscodestudio/lockpick>

Compatibility: QBOX | QBCORE | ESX | STANDALONE (script-side glue required). โš™๏ธ

Join our Farm Discord for help, updates and community: <https://discord.gg/nKPvwZTfcq> ๐ŸŽง

---

## ๐Ÿš€ Quick Installation / Startup

1. Download and install `community_bridge` and any minigame resources you plan to use.

2. Place folders in your server `resources` directory.

3. Ensure the dependencies are started before this resource in your server.cfg:

```lua

ensure community_bridge

ensure boii_minigames

ensure bl_ui

ensure lockpick

ensure farm_gabz_storerobbery

```

(Only ensure the resources you actually install.)

---

## โœจ Key Features

- ๐Ÿ”ง Full control for every robbery interaction: Electric box, Registers, Keypad, Safe, Computer, Shelves, Fridges, Freezer, Donut stands, Door.

- ๐ŸŽฏ Per-interaction settings: enable/disable, interaction type, required items, skill checks, minigames, progress bars, police alerts.

- ๐Ÿ’ต Flexible reward system: cash/bank/item, skill XP, item drops with configurable chances and amounts.

- โฑ๏ธ Global or per-location cooldown/reset timers.

- ๐Ÿ”ฌ Evidence system integration leaves forensic evidence at robbery scenes for police investigation.

- ๐Ÿž Debug mode and per-action logging options for troubleshooting.

- ๐Ÿงฉ Supports community_bridge / drawtext interactions for flexible UX.

- โœ๏ธ pre-translated into 24 languages for international server compatibility.

---

## ๐Ÿงญ Config Overview (config.lua)

Top-level:

- Config.Locale โ€” language code (default: 'en') ๐ŸŒ

- Config.Debug โ€” enable debug prints / debug zones ๐Ÿ›

- Config.Keybind โ€” key for 'drawtext' interactions (default: 38) โŒจ๏ธ

- Config.Logs โ€” toggles for logging: startRobbery, resetRobbery, dispatch, addMoney, addSkill, addItem ๐Ÿ“š

RobberySettings (main table) includes:

- ResetTime โ€” minutes until location resets (default: 60) โฒ๏ธ

- PoliceJobs โ€” list of job names (e.g., 'police', 'sheriff') that receive alerts ๐Ÿš“

- MinimumPoliceRequired โ€” minimum online cops required to start a robbery ๐Ÿ‘ฎโ€โ™‚๏ธ

- StartFromElectricBox โ€” whether robbery must begin at electric box ๐Ÿ”Œ

- Cooldown.global โ€” true = single global cooldown across all locations; false = per-location โ„๏ธ

Each interaction (ElectricBox, Registers, Keypad, Safe, Computer, Shelves, Fridges, Donut, Freezer, Door) has similar configurable keys:

Common keys:

- enable โ€” toggle โœ…/โŒ

- interaction โ€” 'bridge' (community_bridge) ๐Ÿ”— or 'drawtext' โœ๏ธ

- skill โ€” { required = bool, level = { skill = 'name', level = N } } ๐ŸŽ“

- itemsRequired โ€” mapping itemName => { quantity, breakChance } ๐Ÿงฐ

- Minigame โ€” identifier string ('wirecut', 'lockpick', 'numberslide', 'skillbar', 'circleprogress') ๐ŸŽฎ

- ProgressBarTime โ€” seconds for progress bar โณ

- alertPolice โ€” send dispatch alert? ๐Ÿ“ฃ

- size / zone โ€” vec3(...) interaction size ๐Ÿ“

- props โ€” table of prop model names for randomized props ๐ŸŽฒ

---

## ๐ŸŽ Reward Structure (per interaction)

- Reward.Money:

ย  - Moneytype โ€” "cash" | "bank" | "item" | nil (use Lua nil to disable) ๐Ÿ’ธ

ย  - MoneyItem โ€” item name used when Moneytype == "item" (commonly "dirty_money") ๐Ÿงพ

ย  - MoneyReward โ€” { min = x, max = y } amount range โš–๏ธ

- Reward.Skill:

ย  - Enable โ€” boolean to grant skill XP ๐Ÿ†™

ย  - Name โ€” skill identifier ๐Ÿท๏ธ

ย  - Reward โ€” { min = x, max = y } points range ๐ŸŽฏ

- Reward.GetItem โ€” whether to drop items ๐ŸŽ’

- Reward.Item โ€” array of loot entries: { item = "name", chance = percentage, amount = { min, max } } ๐ŸŽฒ

Notes:

- Moneytype = nil (Lua nil) is different from string "nil" โ€” use nil to disable monetary rewards. โš ๏ธ

- breakChance is a 0โ€“100 percentage for item break on use. ๐Ÿ”จ

---

## ๐Ÿ“ Example Defaults (from config.lua)

- Registers: Moneytype = "cash", MoneyReward 150โ€“300; skill 'registers'; item drops like diamond_ring, goldchain. ๐Ÿ’

- Safe: Moneytype = "cash", MoneyReward 500โ€“1000; skill 'safe'; richer item table (diamond_ring, goldchain, rolex). โŒš

- ElectricBox: can give dirty_money + copper; used to trigger full robbery. ๐Ÿ”Œ๐Ÿช™

- Shelves / Fridges / Donut / Freezer: typically GetItem = true and provide food/drinks (donut, water, milk, etc.). ๐Ÿฉ๐Ÿฅค

---

## ๐Ÿ•น๏ธ Minigame Names & Integration

Minigame identifiers used in config (script needs to call your minigame implementations accordingly):

- wirecut โœ‚๏ธ

- lockpick ๐Ÿ”“

- numberslide ๐Ÿ”ข

- skillbar ๐Ÿง 

- circleprogress โญ•

Make sure your server has minigame resources and that the script maps these identifiers to the appropriate minigame exports/events.

---

## ๐Ÿ’ก Tips & Recommendations

- Adjust MinimumPoliceRequired for realistic RP balance โ€” higher = more challenging. โš–๏ธ

- Use Cooldown.global = true to prevent "store-hopping" farming across the map. ๐ŸŒ

- For best UX, use community_bridge (interaction = 'bridge'). ๐Ÿ‘

- Tune ProgressBarTime to align with minigame durations so players don't see mismatched timers. โฑ๏ธ

- For harder content, increase MoneyReward, increase item chance for safes/computers. ๐Ÿ”ง

- Use Config.Debug = true during setup to visualize interaction zones and logs. ๐Ÿงญ

---

## ๐Ÿ› ๏ธ Troubleshooting

- Interactions not showing:

ย  - Verify community_bridge is installed and interaction is set to 'bridge', or set to 'drawtext' if you don't use bridge. ๐Ÿ”

- Items not consuming / break logic:

ย  - Confirm your inventory integration removes items and applies breakChance logic. ๐Ÿงพ

- Police alerts not firing:

ย  - Ensure PoliceJobs matches your framework's job names and dispatch integration is present. ๐Ÿšจ

---

## โœ๏ธ How to Customize

- Edit Reward.Item lists to change loot tables. ๐Ÿงพ

- Change itemsRequired to require different tools (e.g., custom tools instead of lockpick). ๐Ÿ› ๏ธ

- Toggle alertPolice and tailor PoliceJobs to who should receive alerts. ๐Ÿ“ž

- Change MoneyReward min/max to tune economy impact. ๐Ÿ’ฑ

---

## โ–ถ๏ธ Suggested Next Steps

- Integrate the script with your server's economy and inventory (QBCore/ESX/etc) to manage Moneytype behaviors and item grants. ๐Ÿ”„

- Map your minigame resources to the identifiers used in the config. ๐Ÿงฉ

- Tune PoliceJobs, MinimumPoliceRequired, and rewards for your target playerbase. ๐Ÿ‘ฅ

- Consider enabling Config.Logs while testing to capture detailed events for debugging. ๐Ÿ“

---

## ๐Ÿ“ฆ Credits & Links

- community_bridge โ€” <https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge>

- boii_minigames โ€” <https://github.com/boiidevelopment/boii_minigames>

- bl_ui โ€” <https://github.com/Byte-Labs-Studio/bl_ui>

- lockpick โ€” <https://github.com/baguscodestudio/lockpick>

- Farm Discord โ€” <https://discord.gg/nKPvwZTfcq>