📦OLRP Dropbox
🎁 Overview
OLRP Drop Box is a dynamic loot drop system that creates exciting treasure hunting experiences on your FiveM server. Players receive notifications when mysterious drop boxes appear across the map, creating competitive scavenger hunts with valuable rewards.
Key Features
🎯 5-Tier Rarity System — Common, Uncommon, Rare, Epic, and Legendary drops
🗺️ 60+ Spawn Locations — Strategically placed across the entire map
🎨 Visual Indicators — Color-coded blips and radius indicators
📱 Real-time Notifications — Instant alerts for all players
🎁 Comprehensive Rewards — Items, weapons, cash, and special keys
🔧 Fully Customizable — Every aspect can be configured
📊 Discord Integration — Webhook notifications for server events
⚡ Performance Optimized — Lightweight and efficient
🚀 Quick Start
📋 Requirements
Framework: QBCore or Qbox
Dependencies: ox_lib
Permissions: Admin access for configuration
Server: FiveM server with Lua 5.4 support
🎮 How It Works
🎯 Rarity System
Common
50%
White
Basic items, small cash amounts
Uncommon
25%
Green
Better items, moderate cash
Rare
15%
Blue
Good items, special keys
Epic
8%
Purple
High-value items, weapons
Legendary
2%
Red
Premium items, rare weapons
📍 Spawn Locations
Drop boxes can spawn at 60+ carefully selected locations across:
Los Santos — Downtown, suburbs, and industrial areas
Sandy Shores — Desert locations and airfields
Paleto Bay — Northern wilderness areas
Mountains — High-altitude locations
Coastline — Beach and pier areas
🎁 Reward Categories
Items
Cash — Marked bills ($5,000 - $100,000)
Drugs — Meth, crack, cocaine (10-60 units)
Ammunition — Pistol, SMG, rifle ammo (10-60 rounds)
Armor — Body armor and heavy armor (10-60 units)
Keys — Special access cards and keys
Weapons
Pistols — Various pistol models
SMGs — Compact and assault weapons
Rifles — Assault rifles and carbines
Knives — Melee weapons and tools
Special — Lockpicks and utility items
⚙️ Configuration Options
Timing — Customizable spawn intervals
Rewards — Fully customizable reward pools
Locations — Add or remove spawn points
Notifications — Customize alert messages
Discord — Webhook integration settings
Permissions — Access control options
Installation Guide
📋 Prerequisites
Before installing OLRP Drop Box, ensure you have:
FiveM Server with Lua 5.4 support
Framework: QBCore or Qbox
ox_lib dependency installed
Admin Access to your server files
Database Access (if using persistent features)
🚀 Installation Steps
Download & Extract
Download the OLRP Drop Box script from your purchase
Extract the files to your server's
resourcesfolderEnsure the folder structure is correct:
resources/
└── olrp-dropbox/
├── bridge/
├── client.lua
├── server.lua
├── config.lua
├── sv_config.lua
├── reward_config.lua
└── fxmanifest.luaInitial Configuration
Open
config.luaand customize basic settings:
return {
TextUIMessage = 'Press **E** to collect OLRP Dropbox',
DropNotify = 'OLRP has dropped a box somewhere. Check your map for details!',
Blip = {
alpha = 150,
color = 0,
}
}Open
sv_config.luaand configure:Webhook URL for Discord notifications
Spawn timing settings
Minimum player requirements
Open
reward_config.luaand customize:Reward categories and chances
Item lists and quantities
Rarity colors and settings
🔧 Post-Installation Setup
Discord Webhook Setup (Optional)
Create a Discord Webhook in your server settings → Integrations → Webhooks. Copy the webhook URL.
Configure the Webhook in
sv_config.lua:
-- In sv_config.lua
WebhookURL = 'YOUR_DISCORD_WEBHOOK_URL_HERE'Testing the Installation
Use admin commands (if available):
/dropbox_test # Test drop box spawn
/dropbox_debug # Enable debug modeMonitor console for errors and verify framework detection and reward initialization.
Test player experience with a natural spawn or the test command.
⚠️ Troubleshooting
Common issues and solutions are detailed in the Troubleshooting section below (search for "Resource Won't Start", "No Notifications Appearing", "Rewards Not Given", etc.). Enable debug mode in sv_config.lua to get detailed logs:
-- In sv_config.lua
Debug = trueConfiguration Guide
⚙️ Configuration Overview
OLRP Drop Box offers extensive customization via three main configuration files:
config.lua— Basic UI and notification settingssv_config.lua— Server-side settings and spawn configurationreward_config.lua— Reward system and rarity configuration
📱 Basic Configuration (config.lua)
config.lua)UI Messages
return {
TextUIMessage = 'Press **E** to collect OLRP Dropbox',
DropNotify = 'OLRP has dropped a box somewhere. Check your map for details and be the first to find it!',
Blip = {
alpha = 150, -- Blip transparency (0-255)
color = 0, -- Default blip color
}
}Customization Options
TextUIMessage
Interaction prompt text
Press E to collect...
Any text
DropNotify
Server notification message
OLRP has dropped a box...
Any text
Blip.alpha
Blip transparency
150
0-255
Blip.color
Default blip color
0 (White)
0-85
🖥️ Server Configuration (sv_config.lua)
sv_config.lua)Core Settings
return {
-- Timing Configuration
MinPlayers = 1,
FirstDropMin = 30,
FirstDropMax = 60,
SubsequentDropMin = 90,
SubsequentDropMax = 150,
-- System Settings
Debug = true,
WebhookURL = 'YOUR_WEBHOOK_URL',
-- Models and Locations
Models = {
'prop_box_wood03a',
},
Locations = {
-- 60+ spawn locations
}
}Timing Configuration table and Spawn Location Management are documented in the original content — add or modify Locations as:
Locations = {
{coords = vec3(x, y, z), rot = vec3(rx, ry, rz)},
-- Add your custom locations here
}Discord Webhook Configuration
Create webhook in Discord, copy URL, paste into
WebhookURLinsv_config.lua. Features include drop, collection and error notifications.
🎁 Reward Configuration (reward_config.lua)
reward_config.lua)Rarity System Overview
return {
RewardCategories = {
{
name = "Common",
chance = 50,
color = "~w~",
rewards = {
-- Reward items
}
},
-- Additional categories...
}
}Rarity tiers, reward types (item, weapon, money), and code examples for defining items are provided in the original content.
Color Configuration example
RarityColors = {
Common = {
blipColor = 0,
radiusColor = 0,
radiusAlpha = 150,
textColor = "~w~"
},
-- Additional colors...
}🔧 Advanced Configuration
Examples for custom spawn and reward logic, performance optimization, and configuration examples (High-Frequency Server, Low-Frequency Server, Economy-Focused, Combat-Focused) are included in the original content and can be copied directly into your config files.
Features & Functionality
🎯 Core Features
Dynamic Spawn System (random timing, first drop delay, 60+ spawn points)
Rarity-Based Rewards (5-tier system, percentage based)
Real-Time Notifications (map alerts, radius indicators, chat messages, Discord)
🎮 Player Experience
Discovery and collection phases are sequential processes — summarized below as steppers.
Discovery Phase
Collection Phase
🎨 Visual Features
Blip System: Color coding, alpha control, radius display, dynamic updates
Notification System: Color-coded text, rich formatting, multi-language support, customizable messages
Model System: 3D objects, correct rotation, collision detection, cleanup
🔧 Technical Features
Performance Optimization: lightweight code, efficient spawning, memory management
Error Handling: graceful failures, partial rewards, logging, fallback systems
Framework Compatibility: QBCore, ESX, ND Framework with automatic bridge detection
📊 Analytics & Monitoring
Discord Webhooks for events and errors
Logging: collection logs, error logs, performance metrics, debug information
🛡️ Security Features
Server-side validation, permission checks, rate limiting, data validation
Admin commands, permission system, debug and maintenance modes
Rewards System
🎁 Rewards System Overview
Detailed 5-tier rarity structure, reward categories, selection and distribution mechanics, error handling and customization options are provided in the original content.
🎯 Rarity System
Common
50%
~w~
0
Basic items, small cash amounts
Uncommon
25%
~g~
2
Better items, moderate cash
Rare
15%
~b~
3
Good items, special keys
Epic
8%
~p~
27
High-value items, weapons
Legendary
2%
~r~
17
Premium items, rare weapons
Cash, drug, ammo, armor, weapon, and special item reward breakdowns, selection process, distribution rules (player gets all rewards from selected tier with random quantities), and customization snippets are included in the original content.
Examples for adding custom rewards
Item, weapon, and money reward code snippets are provided in the original content — copy those directly into reward_config.lua when adding new rewards.
Troubleshooting
⚠️ Common Issues
The original documentation provides detailed troubleshooting for: Resource Won't Start, No Notifications Appearing, Rewards Not Given, Performance Issues, Discord Webhook Issues, Debug Mode instructions, Performance Optimization, Update Issues and Getting Help. Key steps include enabling Debug, checking dependencies, validating config syntax, verifying framework and item names, and testing webhooks.
Debug Mode
Enable in sv_config.lua:
Debug = trueDebug commands (admin):
/dropbox_test
/dropbox_debug
/dropbox_status
/dropbox_cleanupPerformance and memory management tips are included in the original content.
FAQ
If you want, I can:
Extract the code snippets into separate titled code blocks for GitBook code block titles.
Create a ready-to-drop
server.cfgsnippet and sample minimal config files (config.lua, sv_config.lua, reward_config.lua) based strictly on the settings shown above.
Last updated

