🚚OLRP Truck Heist

🎯 Overview
OLRP Truck Heist is an advanced armored truck heist system that provides immersive and challenging heist experiences on your FiveM server. This professional-grade script features realistic AI guards, explosive mechanics, and comprehensive reward systems that create exciting interactions between criminals and law enforcement.
Key Features
🚛 Dynamic Truck Spawning - Multiple realistic bank locations with escort vehicles
🤖 Intelligent AI Guards - Realistic combat behavior and vehicle exit mechanics
💣 Explosive Mechanics - Plant explosives with countdown timers for realistic gameplay
💰 Comprehensive Rewards - Money and item rewards worth up to $250k per heist
🚨 Police Integration - Automatic dispatch alerts for law enforcement
📡 Tracker System - Real-time truck location tracking for all players
🔧 Fully Customizable - Every aspect can be configured to your needs
⚡ Performance Optimized - Efficient resource usage for high player counts
🚀 Quick Start
📋 Requirements
Framework: Qbox, QBCore or ESX
Required Dependencies: ultra-voltlab (Voltage hacking minigame)
Optional Dependencies: ox_lib (notifications), ps-dispatch (police alerts)
Permissions: Admin access for configuration
Server: FiveM server with Lua 5.4 support
Players: 50+ recommended for best experience
🎮 How It Works
Installation Guide
📋 Prerequisites
Before installing OLRP CIT Heist, ensure you have:
FiveM Server with admin access and Lua 5.4 support
Framework: Qbox, QBCore or ESX installed and running
ultra-voltlab - Required dependency for voltage hacking minigame
ox_lib (optional) for enhanced notifications
ps-dispatch (optional) for police integration
Server Restart capability for testing
🚀 Installation Steps
Dependencies
Download ultra-voltlab - Voltage hacking minigame
Extract to your
resourcesfolder
Add required dependencies to your server.cfg:
🔧 Post-Installation Setup
Police Integration Setup (Optional)
Install ps-dispatch (if not already installed)
Configure dispatch settings in config.lua:
Item Requirements Setup (Optional)
If you want to require items to start heists:
Add items to your framework:
QBCore: Add to
qb-core/shared/items.luaESX: Add to your database
Configure the script:
Testing the Installation
Test Basic Functionality:
Join your server
Find the NPC informant (check config.lua coordinates)
Start a heist by pressing E on the NPC
Follow the truck and test mechanics
Test Advanced Features:
Test with multiple players
Verify police dispatch (if enabled)
Check reward distribution
Test cooldown system
⚠️ Troubleshooting
Common Issues
Script Won't Start
Check Dependencies: Ensure frameworks and dependencies are installed
Verify Framework: Confirm your framework (QBCore/ESX) is running
Check Syntax: Validate Lua syntax in config files
Guards Don't Spawn
Check Guard Model: Verify guard model exists in your server
Model Name: Check
Config.Guards.modelsettingFramework Load: Ensure framework is fully loaded before script start
Truck Doesn't Spawn
Check Truck Model: Verify truck model is available
Spawn Coordinates: Check spawn location coordinates
Conflicting Scripts: Check for conflicting vehicle spawn scripts
Notifications Don't Work
Check Config: Verify notification settings
Framework Issues: Ensure framework integration is working
ox_lib: Ensure ox_lib is installed (if using)
Police Dispatch Issues
Verify ps-dispatch: Ensure ps-dispatch is installed and configured
Dispatch Config: Check dispatch configuration in config.lua
Police Jobs: Ensure police job names match your server
ultra-voltlab Issues
Install ultra-voltlab: Download ultra-voltlab from GitHub
Ensure startup order: Add
ensure ultra-voltlabBEFOREensure olrp_citheistin server.cfg
Debug Commands
Admin commands for troubleshooting:
Configuration Guide
⚙️ Configuration Overview
OLRP Truck Heist offers extensive customization through the main config.lua file:
Framework Settings - Qbox, QBCore or ESX configuration
General Settings - Cooldowns, durations, and requirements
NPC Settings - Informant NPCs and locations
Vehicle Settings - Truck and escort vehicle configuration
Guard Settings - AI guard behavior and equipment
Explosive Settings - Explosion mechanics and requirements
Reward Settings - Money and item rewards
Police Settings - Dispatch and police requirements
🖥️ Basic Configuration
Framework Configuration
General Settings
Cooldown Management
CooldownTime
Minutes between heists
60
30-300
HeistDuration
Max heist duration (minutes)
false
false or 30-120
MaxDistance
Max truck travel distance
false
false or number
🚛 Truck & Vehicle Configuration
Truck Spawn Locations
Truck Models
Available truck models:
stockade3- Main armored truckstockade2- Alternative armored truckstockade- Original armored truck
Escort Vehicle Configuration
Available escort models:
insurgent,mesa,fbi2,sheriff2,riot,stockade
🤖 Guard Configuration
Guard Settings
Guard Behavior
Auto-Exit: Guards automatically exit when truck is damaged
Combat AI: Guards fight back with configured weapons
Armor System: Configurable armor levels
Death Detection: Guards removed when killed
💣 Explosive Configuration
Explosive Settings
Explosive Mechanics
Damage Threshold: Truck must take 500 damage before guards exit
Countdown Timer: 30-second countdown before explosion
Visual Effects: Explosion effects and sound
Item Requirement: Optional explosive item requirement
🎁 Reward Configuration
Money Rewards
Item Rewards
Reward Structure
Total Value: ~$250k per heist
Money Range: $5k - $15k
Marked Bills: $1k - $6k
Gold Bars: $237k (200 × $1,185)
🚨 Police Configuration
Police Requirements
Dispatch Settings
📍 Location Configuration
Info Ped Location
NPC Informant Locations
📡 Tracker Configuration
Tracker Settings
Performance Optimization
For high player count servers (100+), increase update interval:
🎯 Blip Configuration
Blip Settings
⚡ Performance Optimization
For High Player Count Servers (100+)
For Standard Servers (50-100)
Features & Functionality
🎯 Core Features
Dynamic Truck Spawning
Multiple Locations: Truck spawns at various bank locations
Realistic Locations: Actual in-game banks and financial institutions
Random Selection: Each heist uses a random spawn location
Escort Vehicles: Optional escort vehicles for increased difficulty
AI Guard System
Intelligent Behavior: Guards exit vehicle when truck is damaged
Realistic Combat: Guards fight back with configured weapons
Armor System: Configurable armor levels for challenge
Multiple Guards: 4+ guards per truck with escort option
Explosive Mechanics
Planting System: Players plant explosives on truck
Countdown Timer: 30-second explosion countdown
Visual Effects: Realistic explosion effects and sound
Damage Threshold: Truck must be damaged before guards exit
Required Items: Optional explosive item requirement
Looting System
Post-Explosion: Looting available after truck is destroyed
Interaction: Press E to loot destroyed truck
Progress Bar: Visual progress indicator during looting
Comprehensive Rewards: Money and items worth up to $250k
Police Integration
Dispatch Alerts: Automatic police notifications when heist starts
Real-time Tracking: Police receive truck location updates
Radio Codes: Configurable dispatch codes and messages
Blip Updates: Police blips update as truck moves
🎮 Player Experience
Starting a Heist
Combat Phase
Explosion Phase
Looting Phase
🎨 Visual Features
Blip System
Truck Blip: Red blip showing truck location
Delivery Blip: Green blip for delivery location
Info Ped Blip: Flashing blip for info location
Real-time Updates: Blips update as truck moves
Notification System
Color-Coded: Different colors for different events
Rich Formatting: Professional notification styling
Progress Indicators: Visual progress for looting
Countdown Timers: Visual explosion countdown
AI Behavior
Realistic Movement: Guards move naturally
Combat AI: Guards fight back intelligently
Vehicle Exit: Guards exit damaged vehicles
Death Cleanup: Guards removed when killed
🔧 Technical Features
Performance Optimization
Efficient Threads: Optimized thread management
Distance-Based: Features activate based on distance
Proper Cleanup: Entities removed when not needed
Memory Management: Efficient memory usage
Error Handling
Graceful Failures: System continues if errors occur
Partial Rewards: Players get what they can
Logging System: Comprehensive error logging
Fallback Systems: Default behaviors for edge cases
Framework Compatibility
QBCore Support: Full integration with QBCore
ESX Support: Compatible with ESX framework
Dual Framework: Automatic framework detection
Bridge System: Seamless framework switching
📊 Police Interactions
Dispatch Features
Automatic Alerts: Police notified when heist starts
Real-time Location: Police track truck movements
Multiple Job Support: Configurable police job names
Dispatch Integration: ps-dispatch compatibility
Police Requirements
Minimum Count: Configurable minimum police officers
On-Duty Check: Only counts on-duty police officers
Job Names: Configurable police job names
Disable Option: Can disable police requirements
🛡️ Security Features
Cooldown System
Per-Player: Individual cooldowns for each player
Configurable Time: Customizable cooldown duration
Server-Side: Cooldowns tracked server-side
Admin Reset: Admins can reset cooldowns
Item Requirements
Optional Requirement: Can require items to start heist
Item Removal: Configured item removal after start
Framework Integration: Works with framework inventory
Flexible System: Multiple item support
Share System
Nearby Sharing: Share heist with nearby players
Distance Configuration: Configurable sharing distance
Team Coordination: Groups can work together
Cooldown Respect: All participants enter cooldown
Rewards System
🎁 Rewards Overview
The OLRP CIT Heist rewards system provides balanced and exciting rewards that enhance gameplay while maintaining server economy balance. Each successful heist yields approximately $250k in total value.
💰 Reward Structure
Money Rewards
Minimum: $5,000 cash
Maximum: $15,000 cash
Random Range: Random amount within range per heist
Item Rewards
Marked Bills
Amount: 1-2 marked bills
Value: $1,000 - $6,000 total
Purpose: Untraceable cash for roleplay
Gold Bars
Amount: 200 gold bars
Value: $237,000 (200 × $1,185)
Purpose: Primary high-value reward
📊 Total Heist Value
Default Configuration
Cash: $5,000 - $15,000
Marked Bills: $1,000 - $6,000
Gold Bars: $237,000
Total: ~$248,000 - $258,000 per heist
Reward Distribution
Immediate Cash: Received upon looting
Items: Distributed via framework inventory
Notification: Success message with reward amounts
Logging: All rewards logged server-side
🎲 Reward Mechanics
Selection Process
Random Money: Money amount randomly selected within range
Random Items: Item amounts randomly selected within range
All Rewards: Player receives all configured rewards
Framework Distribution: Rewards given via framework functions
Error Handling
Partial Success: Player gets successful rewards if some fail
Inventory Space: Handles full inventory gracefully
Item Validation: Ensures items exist before giving
Logging: All reward attempts logged
🔧 Customization
Modifying Rewards
Adding New Items
Adjusting Money Amounts
Custom Reward Logic
You can modify the reward distribution in server.lua to add custom logic:
Server Events: Modify reward distribution events
Framework Integration: Custom reward functions
Validation: Additional reward validation
Economy Balance
For High-Economy Servers
For Low-Economy Servers
For Roleplay Servers
Keep default values and adjust item amounts based on your economy.
📊 Reward Examples
Example 1: Cash $12,500 + Marked Bills 2 ($6,000) + Gold Bars 200 ($237,000) = $255,500
Example 2: Cash $7,300 + Marked Bills 1 ($3,000) + Gold Bars 200 ($237,000) = $247,300
Example 3: Cash $14,200 + Marked Bills 2 ($6,000) + Gold Bars 200 ($237,000) = $257,200
🎯 Player Experience
Reward Notification
When player successfully loots the truck:
Success Message: "Heist completed successfully! You earned $X"
Item Notifications: Framework-specific item notifications
Logging: Server logs all reward distributions
Collection Experience
Immediate Rewards: All rewards given instantly
Visual Feedback: Clear success/error messages
Inventory Management: Automatic inventory handling
Error Recovery: Graceful handling of failures
Competition Element
First-Come-First-Served: Only first player gets rewards
Strategic Timing: Players must time approach carefully
Risk vs Reward: Balance between safety and rewards
Team Coordination: Groups must coordinate looting
🔒 Security
Server-Side Distribution
Server Authority: All rewards processed server-side
Validation: Item and money validation before distribution
Framework Integration: Uses framework functions only
No Client Authority: No client-side reward manipulation
Cooldown Protection
Per-Player Cooldown: Individual cooldowns prevent spam
Configurable Duration: Adjust cooldown based on economy
Server Tracking: Cooldowns tracked server-side
Admin Override: Admins can reset cooldowns
Troubleshooting
(See Installation Guide > Troubleshooting for common issues and debug commands)
🔧 Performance Issues
Server Lag During Heists
Solutions:
Increase Cooldown: Reduce heist frequency
Reduce Locations: Use fewer spawn locations
Simplify Guards: Reduce guard count
Optimize Settings: Adjust tracker update intervals
High Memory Usage
Solutions:
Cleanup: Ensure proper cleanup of entities
Reduce Entities: Lower guard count
Disable Features: Disable escort vehicles
Update Settings: Optimize performance settings
FPS Drops During Heists
Solutions:
Reduce Entities: Lower guard and vehicle counts
Distance Checks: Ensure proper distance-based activation
Optimize Scripts: Check for performance issues in custom code
Server Resources: Monitor server resources
📊 Debug Mode
Enabling Debug Information
Add debug logging to client.lua:
Admin Commands
🔄 Update Issues
Configuration Migration
Solutions:
Backup Config: Always backup working configurations
Check Changelog: Review update changelog for changes
Update Settings: Apply new configuration settings
Test Thoroughly: Test in development environment
Version Compatibility
Solutions:
Framework Version: Check framework version compatibility
Update Framework: Update to compatible framework version
Check Bridge: Verify framework bridge compatibility
Test Compatibility: Test with different framework versions
📞 Getting Help
Before Contacting Support
Enable Debug Mode: Add debug logging
Check Console: Look for error messages
Test Configuration: Verify all config files
Document Steps: Note exact reproduction steps
Gather Information: Collect server details
Information to Provide
Server Details: Framework, version, player count
Error Messages: Exact console error messages
Configuration: Relevant config file contents
Reproduction Steps: Steps to reproduce issue
Console Output: Full console output with errors
Community Support
Discord: Join OLRP Discord for community help
Documentation: Check this documentation thoroughly
Forums: Search forums for similar issues
GitHub: Check for known issues and solutions
FAQ
❓ Frequently Asked Questions
Last updated

