๐ฐ Pogue Robbery Script for RedM
The Pogue Robbery Script introduces immersive robbery mechanics for your RedM server, enabling players to engage in dynamic heists at banks and general stores.
๐ฌ Support
๐ Overview
This script allows players to perform store and bank robberies by interacting with NPCs at designated locations. Each robbery scenario is governed by specific mechanics such as required items, police presence checks, and cooldowns to maintain balance and immersion.
โจ Features
๐ฆ Bank Robbery
Players can initiate bank robberies by interacting with NPCs at bank locations.
Requirements: Players need a dynamite in their inventory (added via SQL to the
items
table).Execution: After meeting the police presence requirement, players can detonate the vault and receive configurable rewards.
๐ Store Robbery
Players can rob general stores by interacting with NPCs stationed at store locations.
Requirements: Players need a lockpick in their inventory (added via SQL to the
items
table).Cooldown System: A configurable cooldown prevents repeated robberies at the same location.
๐ Police Checks
Configurable minimum police presence:
Stores: Requires at least one police player (
Config.MinPolice
).Banks: Requires at least one police player (
Config.MinBankPolice
).
If the requirements are not met, the robbery cannot proceed, and players receive a notification.
๐ข Alert Notifications
Police are notified when a robbery is initiated, including details and coordinates.
Configurable alert timers ensure timely police responses (
Config.Policealert
).
๐ Rewards
Rewards are customizable for both store and bank robberies:
Store Rewards: Defined in
Config.StoreItems
.Bank Rewards: Defined in
Config.BankItems
.
๐ Cooldowns
Prevent abuse with configurable cooldown timers for each robbery type (
Config.robberyCooldown
).
๐ง Installation Instructions
1. Add the Script to Your Server
Place the Pogue_Robbery folder into your server's resources directory.
Add the script to your
server.cfg
file:ensure pogue_robbery
2. Set Up the Database
Run the following SQL commands to add the required items to the items
table:
dynamite , lockpick
3. Configure Settings
Edit the config.lua
file to customize the following options:
NPC Locations:
Config.NPCS = { { coords = vector4(-1786.1436, -397.5865, 155.6201, 51.1322), model = 'A_M_M_UniGunslinger_01', outfit = false } }
Cooldown Timers:
Config.robberyCooldown = 120000 -- Cooldown for store/bank robberies (in milliseconds)
Rewards:
Config.StoreItems = { { itemName = "goldbar", amount = 1 }, { itemName = "diamond", amount = 1 } } Config.BankItems = { { itemName = "diamond", amount = 5 }, { itemName = "goldbar", amount = 3 } }
Police Requirements:
Config.MinPolice = 1 Config.MinBankPolice = 1
4. Add Images to VORP Inventory
Copy the images for lockpick and dynamite into your vorp_inventory/html/img/items
directory.
๐ ๏ธ Requirements
VORP Core Framework: Ensure
vorp_core
is installed and functional.VORP Inventory: Required for inventory management.
oxmysql: Required for database integration.
๐ฎ How It Works
1. Store Robberies
Players approach a general store NPC and initiate a robbery.
Requirement: A lockpick is required in the player's inventory.
Reward: Configured items (e.g.,
goldbar
ordiamond
) are added to the player's inventory upon success.
2. Bank Robberies
Players initiate a bank robbery by interacting with a bank location.
Requirement: A dynamite is required to blow open the vault.
Reward: Larger rewards, such as multiple
goldbars
ordiamonds
, are provided.
3. Police Interaction
Robberies cannot proceed without the minimum required police presence.
Notifications are sent to all police players when a robbery begins, ensuring timely responses.
4. Cooldowns
Robbery cooldowns prevent spamming. Players must wait until the timer resets to attempt another robbery.
๐ Special Considerations
Customization:
Adjust NPC locations, rewards, cooldowns, and more in the
config.lua
file.
Inventory Setup:
Ensure that lockpick and dynamite items are added to your inventory system.
Realism:
Police presence requirements enhance roleplay and ensure balanced gameplay.
For additional support or resources, join our Discord or visit our Tebex store.
Enjoy the Pogue Robbery Script and bring thrilling heist scenarios to your RedM server! ๐ฐ
Last updated