A comprehensive FiveM script that allows players to rob parking meters using a crowbar, with support for multiple banking and dispatch systems.
- Rob parking meters with weapon_crowbar
- Prop-specific detection - Works with ALL parking meters automatically
- Optional zone restrictions - Blacklist or whitelist specific areas
- Configurable payout amounts
- Cooldown system to prevent spam
- Multiple inventory system support (qb-inventory, ox_inventory)
- Multiple banking system support (qb-banking, okokBanking)
- Multiple dispatch system support (ps-dispatch, cd_dispatch, rcore_dispatch)
- Street name detection for police alerts
- Minimum police requirement
- Progress bar with cancel option
- Item durability support (optional)
- Target system or key press support
- Fully configurable
- qb-inventory (default QBCore)
- ox_inventory
- qb-banking (default QBCore)
- okokBanking
- ps-dispatch
- cd_dispatch
- rcore_dispatch
- Custom fallback system (if no dispatch installed)
- qb-target
- ox_target
- Key press (fallback)
-
Download and extract the
dynamic-parkingrobberyfolder to your resources directory -
Add to your
server.cfg:
ensure dynamic-parkingrobbery- Add the crowbar item to your
qb-core/shared/items.lua:
['weapon_crowbar'] = {
['name'] = 'weapon_crowbar',
['label'] = 'Crowbar',
['weight'] = 2500,
['type'] = 'weapon',
['ammotype'] = nil,
['image'] = 'weapon_crowbar.png',
['unique'] = true,
['useable'] = false,
['description'] = 'A heavy crowbar, useful for prying things open'
},-
Configure the script in
config.lua(see Configuration section below) -
Restart your server
Open config.lua and adjust settings to your preference:
Config.CooldownTime = 300000 -- Cooldown between robberies (5 minutes)
Config.RobberyTime = 10000 -- Time to rob a meter (10 seconds)
Config.PoliceAlertChance = 75 -- Chance to alert police (75%)
Config.MinPayout = 50 -- Minimum payout
Config.MaxPayout = 150 -- Maximum payout
Config.RequiredItem = "weapon_crowbar" -- Item needed
Config.MinimumPolice = 0 -- Minimum police onlineConfig.InventorySystem = 'qb-inventory' -- Options: 'qb-inventory', 'ox_inventory'Config.BankingSystem = 'qb-banking' -- Options: 'qb-banking', 'okokbanking'Config.DispatchSystem = 'ps-dispatch' -- Options: 'ps-dispatch', 'cd_dispatch', 'rcore_dispatch', 'none'Config.PoliceJobs = {
'police',
'sheriff',
-- Add more police job names if needed
}The script is prop-specific and works with all parking meters automatically!
You can optionally restrict certain areas:
Config.UseZoneRestrictions = false -- Disabled by default (recommended)
-- If enabled:
Config.ZoneMode = 'blacklist' -- or 'whitelist'
-- Example: Prevent robberies near Mission Row PD
Config.BlacklistZones = {
{
coords = vector3(425.1, -979.5, 30.7),
radius = 100.0,
label = "Mission Row PD"
}
}See ZONES.md for complete zone configuration guide.
Config.UseTarget = true -- Use target system?
Config.TargetSystem = 'qb-target' -- Options: 'qb-target', 'ox_target'If you don't use a target system, set Config.UseTarget = false and it will use key press (E by default).
No additional setup required. The script uses QBCore's built-in money functions.
- Set
Config.BankingSystem = 'okokbanking' - Ensure you have okokBanking installed and working
- The script will automatically add money using okokBanking's export
- Set
Config.DispatchSystem = 'ps-dispatch' - Ensure ps-dispatch is installed
- Configure
Config.PSDispatchBlipsettings in config.lua - Make sure police jobs have
type = 'leo'in qb-core/shared/jobs.lua - See PS-DISPATCH.md for detailed integration guide
- Set
Config.DispatchSystem = 'cd_dispatch' - Ensure cd_dispatch is installed
- Configure
Config.Blipssettings in config.lua - Make sure police jobs match your server's job names exactly
- See CD-DISPATCH.md for detailed integration guide
- Set
Config.DispatchSystem = 'rcore_dispatch' - Ensure rcore_dispatch is installed
- Configure
Config.Blipssettings in config.lua - Make sure police jobs match your rcore_dispatch CONFIG.JOBS exactly
- Players must be in a unit to receive alerts (or enable AlwaysSubscribeAlertWithoutUnit)
- See RCORE-DISPATCH.md for detailed integration guide
- Set
Config.DispatchSystem = 'none' - The script will use a fallback system that sends alerts directly to online police
If you want crowbars to degrade with use:
Config.ItemDurability = trueThis requires your inventory system to support item metadata/quality. Each robbery will reduce the crowbar's quality by 10%.
If you want the crowbar to be consumed after use:
Config.RemoveItemOnUse = true/clearmetercd- Clear all parking meter cooldowns (Admin only)
- Ensure they have the
weapon_crowbaritem - Check that minimum police requirement is met
- Verify the meter hasn't been robbed recently (cooldown)
- Check that
Config.DispatchSystemis set correctly - Verify police jobs are listed in
Config.PoliceJobs - Ensure police are on duty (if applicable)
- Check dispatch script is installed and working
- Verify
Config.BankingSystemis set correctly - Check server console for errors
- Ensure banking resource is running
- Verify
Config.UseTarget = true - Check
Config.TargetSystemmatches your installed target - Ensure target resource is running
Enable debug mode to see console logs:
Config.Debug = trueThis will print useful information to help troubleshoot issues.
Created for QBCore Framework
For issues and support, please check:
- Server console for errors
- Config.lua settings are correct
- All dependencies are installed
- Enable Debug mode for detailed logs
This script is open source and free to use.
This resource is source-available, all rights reserved under the Dynamic Scripts Proprietary License. You may view the code, but you may not redistribute, resell, or publish modified or "improved" versions.
Found a bug, fix, or improvement? Please don't fork or republish - instead DM the author at wax@waxthe.dev, and it may be incorporated (with credit).