Shadow Store discord ["https://discord.gg/7c2gZqD98A"]
A script that allows players to rob vending machines in a QBCore server using electronic tools, featuring a complete system of challenges and risks.
- QBCore Framework - Core framework
- qb-target - Interaction system with objects
- st-mastermind ["https://github.com/abual3bed00/st-mastermind"] - Minigame script for hacking
- cd_dispatch - Police notification system (optional)
- Electronic Kit - Electronic tool for hacking
- Player interacts with a vending machine using qb-target
- "Rob Vending Machine" option appears
- Player must have an Electronic Kit
- Progress bar for 5 seconds with animation
- Minigame using st-mastermind:
- 6 attempts
- 60 seconds time limit
- On success: receives rewards
- On failure: loses the attempt
- After 5 seconds from starting the robbery
- Notification sent to police department including:
- Location of the incident
- Player's gender
- Blip for 5 minutes
- Gold Coins: 1 to 3 pieces
- Silver Coins: 2 to 5 pieces
- After 3 uses of the electronic tool
- 30% chance for the tool to burn and be lost
- Counter resets after burning
- 5-minute cooldown per machine
- Entity control to prevent errors
- Chance of losing tools
- Police notifications
- Minigame difficulty
- Usage counter per player
- Data deletion when player disconnects
- Add the script to the resources folder
- Adjust configuration as desired
- Ensure required scripts are installed
- Add items (Electronic Kit) to the database
- Modify rewards in
Config.Rewards - Change burn chance in
Config.ElectronicKit - Adjust cooldown time in the code
- ➡️ Player finds a vending machine
- 🎯 Interacts with it using QB-Target
- 🔧 Uses Electronic Kit
- ⏳ Waits 5 seconds with animation
- 🎮 Plays hacking Minigame
- ✅ On success: receives coins
- 🚨 Police automatically notified
- 🔥 Chance of tool burning after 3 uses
- Script designed to be balanced and prevent exploitation
- Parameters can be adjusted according to server management preferences
- Integrates with core QBCore systems
- Supports police notifications and blips
This script adds interactive content for players with a complete system of rewards and risks!