Corner Selling v2.2.4
Corner Selling (sd-selling) is an advanced drug dealing and corner selling system for FiveM. Sell drugs to NPCs in designated zones, progress through a 5-level reputation system, complete delivery missions, encounter bulk buyers, and track your milestones. Features dynamic pricing, robbery mechanics, money laundering, and a full statistics system.
Preview
Key Features
Zone-Based Selling
- Multiple configurable selling zones (radius or polygon-based)
- Each zone has its own drug selection, pricing, cooldowns, and level restrictions
- Some zones require minimum police online
- Optional map blips per zone
5-Level Reputation System
| Level | Name | XP Required | Selling Hours | Price Multiplier | Police Alert | Robbery Risk |
|---|---|---|---|---|---|---|
| 1 | Pusher | 0 | 21:00-02:00 | 1.0x | 30% | 0% |
| 2 | Runner | 250 | 20:00-04:00 | 1.1x | 25% | 15% |
| 3 | Hustler | 1,000 | 19:00-05:00 | 1.2x | 20% | 13% |
| 4 | Kingpin | 2,000 | 18:00-06:00 | 1.3x | 15% | 20% |
| 5 | Legend | 3,500 | 17:00-07:00 | 1.4x | 10% | 3% |
Drug Sale Mechanics
- Randomized buyer behavior -- price and quantity vary per NPC
- Smart quantity logic -- adapts based on player's current inventory
- Custom animations -- per-drug handshake animations (configurable)
- Rejection system -- buyers can refuse with separate police alert chance
- Metadata support -- sell different variants of the same drug (e.g., weed strains) via ox_inventory
Robbery System
- Buyers can steal your drugs and flee
- Chase and incapacitate the NPC to retrieve your product
- Drugs are destroyed if the buyer escapes beyond 100m
- 5-minute global cooldown between robberies
Delivery Missions
Three delivery tiers available from the Drug Lord NPC:
| Tier | Units | Stops | XP per Stop | Processing Time |
|---|---|---|---|---|
| Small | 50 | 3-8 | 20 XP | 5 minutes |
| Medium | 125 | 5-12 | 25 XP | 5 minutes |
| Large | 250 | 8-13 | 30 XP | 5 minutes |
Each tier has multiple randomized routes with varying payout boosts (0-20% bonus per stop).
Bulk Sale Encounters
- Random encounters trigger based on level (2-6% chance)
- Bulk purchases of 25-40 units at 1.5x market price
- Meeting at one of 17 random locations across the map
- 100 XP bonus per completed encounter
- 30-minute cooldown between encounters
Milestone System
Track your progress and earn rewards:
- General milestones based on total units sold
- Drug-specific milestones for individual drugs
- Rewards: items, XP, or money
- Multi-stage milestones with escalating rewards
Money Laundering
- Level-based tax on dirty money (Level 1: 25%, Level 5: 5%)
- Support for marked bills, bands, and rolls
- Optional item-based washing system
Statistics
- Track units sold per drug, total XP, and more
- View stats from the NPC interaction menu
- Persistent database storage
Supported Frameworks
| Framework | Status |
|---|---|
qb-core | Fully supported |
qbx_core | Fully supported |
es_extended (ESX) | Fully supported |
Supported Inventories
| Inventory | Status |
|---|---|
ox_inventory | Fully supported (metadata, drug variants) |
tgiann-inventory | Supported |
jaksam_inventory | Supported |
qs-inventory | Supported |
qs-inventory-pro | Supported |
qb-inventory | Supported |
ps-inventory | Supported |
lj-inventory | Supported |
codem-inventory | Supported |
Supported Target Systems
| Target | Status |
|---|---|
ox_target | Fully supported |
qb-target | Fully supported |
qtarget | Fully supported |
Dependencies
| Dependency | Options |
|---|---|
| Framework | qb-core / qbx_core / es_extended |
| Library | sd_lib (required) |
| Target System | ox_target / qb-target / qtarget |
| UI Library | ox_lib |
| Inventory | ox_inventory (recommended, for metadata support) |
| Database | oxmysql |
INFO
Framework, inventory, and target system are all auto-detected via sd_lib. The sd_cornerselling database table is created automatically on first start.
File Structure
sd-selling/
client/
main.lua -- Client-side selling, deliveries, encounters, robbery
server/
logs.lua -- Logging configuration
main.lua -- Server-side rewards, XP, milestones, encounters
locales/
ar.json -- Arabic
de.json -- German
en.json -- English
es.json -- Spanish
fr.json -- French
images/
bands.png
rolls.png
[SQL]/ESX/items.sql -- ESX item definitions
config.lua -- All configuration
fxmanifest.luaQuick Links
- Installation -- Get up and running
- Configuration -- Customize every aspect
