DMD Store Parking Meter System | Parking Tickets & Robbery | QB ESX
DMD-ParkingMeter
Complete parking meter system with tickets, police checks, and robbery mechanics.
A realistic parking enforcement system where players pay for parking, police check tickets, and criminals can rob parking meters. Features database tracking, Discord logging, and configurable pricing.
Perfect for roleplay servers, police departments, and realistic city mechanics.
----------------------------------------------------------------
FEATURES
Parking Ticket System
• Interactive parking meters (props)
• Pay for parking time (1-30 minutes)
• License plate tracking
• Street name detection
• Automatic expiration system
• Database storage (MySQL)
Police Checks
• Check vehicle parking status
• Job-based permissions
• License plate validation
• Street-specific tickets
• Expiration time display
• Real-time notifications
Robbery System
• Rob parking meters for cash
• Lockpick required
• Police dispatch alerts
• Minimum police count enforcement
• Cooldown timer (prevents spam)
• Skillcheck minigame (optional)
Full Configuration
Config = {
Framework = "qb-core", -- or "esx"
Locale = "en", -- en/pt/de/fr/nl
-- Parking
PricePerMinutes = 1,
MinParkingTime = 1,
MaxParkingTime = 30,
-- Robbery
UseRobbery = true,
MinPoliceCount = 0,
TimeBeforeCanRobAgain = 1,
GetRobMoney = math.random(100, 225),
RobItem = "lockpick",
-- Police
JobCanCheckParkingTime = {"police", "sast"},
AllCanCheckVehicle = false,
-- Dispatch
UseDispatch = true,
ChanceToAlertPolice = 100,
Dispatch = "emergencydispatch",
}
----------------------------------------------------------------
PARKING SYSTEM
How It Works
1. Player approaches parking meter
2. Target interaction appears
3. Select parking duration (1-30 min)
4. Pay via bank/cash
5. Ticket stored in database
6. Expiration time calculated
Price Calculation
Total Cost = PricePerMinutes x Selected Minutes
Example: $1/min x 15 min = $15
----------------------------------------------------------------
POLICE SYSTEM
Check Parking Ticket
• Target vehicle doors/seats
• Shows ticket info if valid
• Displays expiration time
• Street-specific validation
Job Permissions
Supports simple lists or QBCore grade-based permissions.
----------------------------------------------------------------
ROBBERY MECHANICS
Requirements
- Lockpick item in inventory
- Minimum police online
- Cooldown timer expired
- Near parking meter
Process
1. Use lockpick on parking meter
2. Progressbar appears (5 seconds)
3. Optional skillcheck minigame
4. Police dispatch triggered
5. Receive random cash ($100-$225)
6. Cooldown timer starts
Dispatch Integration
Supports ps-dispatch, emergencydispatch, codem-dispatch, qs-dispatch, and custom dispatch.
----------------------------------------------------------------
DATABASE TABLES
Requires creating two tables:
• PS_ParkingMeter
• PS_ParkingMeter_robbery
----------------------------------------------------------------
TARGET SYSTEM
Props Supported: prop_parknmeter_01, prop_parknmeter_02
Vehicle Bones: Front driver seat, Front passenger seat, Rear seats, All doors
----------------------------------------------------------------
MULTI-LANGUAGE SUPPORT
Included locales: English (en), Portuguese (pt), German (de), French (fr), Dutch (nl).
----------------------------------------------------------------
DISCORD WEBHOOKS
Logs the following events to Discord:
- Parking ticket purchases
- Robbery attempts
- Police checks
- Payment transactions
----------------------------------------------------------------
COMPATIBILITY
• Frameworks: QBCore, ESX
• Target Systems: ox-target, qb-target
• Progress Bars: qb-progressbar, ox-progressbar, ESX-Progressbar
• Inventories: QB Inventory, OX Inventory, QS Inventory
• Database: OXMySQL
----------------------------------------------------------------
SECURITY
Protected by DMD-LIB security system:
- Script name verification (dmd-parkingmeter)
- Dependency validation
- Anti-leak protection
----------------------------------------------------------------
INSTALLATION
1. Ensure "dmd-lib", "ox_lib", "oxmysql", and target system are installed
2. Extract "dmd-parkingmeter" to resources
3. Run SQL database queries (both tables)
4. Configure framework and dispatch in config.lua
5. Add webhook URL in server/discord_webhook.lua
6. Add lockpick item if using robbery
7. Add to server.cfg:
ensure oxmysql
ensure ox_lib
ensure ox-target
ensure dmd-lib
ensure dmd-parkingmeter
8. Restart server
----------------------------------------------------------------
DMD Store - Professional FiveM Resources