Legends Drugs V2 | VORP CORE

:skull: Legends: Drugs v2

:alembic: The Most Advanced Drug & Crime Economy for RedM


:skull: Step Deeper Into the Underworld

Legends: Drugs v2.1 takes RedM criminal roleplay to the next level.
This isn’t just a drug script — it’s a living ecosystem with intelligent NPCs, production chains, deliveries, laundering, raids, and now informant intelligence that can twist your story in every direction.

Do you rise as a ruthless kingpin, or take them down as law enforcement?
The streets are alive — and every choice has consequences.


:police_car_light: NEW IN v2.1 – “The Informant Update”

:detective: Informants System (Rewritten)

  • :handshake: NPC informants can now be approached and questioned for intel.
  • :world_map: They may provide accurate or false black market locations, forcing players to verify leads in the world.
  • :speech_balloon: Smart dialogue trees — “Talk” and “Negotiate” prompts coexist cleanly for multi-NPC interactions.
  • :puzzle_piece: Integrated with law enforcement raids and street networks for dynamic information loops.

:left_speech_bubble: Every informant is unique — some lie for cash, others fear the law. Who you trust could decide your empire.


:gear: Integration & Developer Suite

  • :link: Added full export suite for:

    • Street Sales
    • Processing & Production
    • Packaging
    • Deliveries
    • Raids
    • Recipe Unlocks
  • :blue_book: New docs/INTEGRATIONS.md provides full payload schemas and examples.

  • :brain: Designed for analytics, skill tracking, and dispatch hooks — plug into your own ecosystem safely.


:pill: Custom Drug System – Rebuilt

  • :brick: Custom drugs now work identically to standard recipes.
  • :alembic: Unified processing flow and consistent events.
  • :locked_with_key: Steam ID whitelist validation for VIP or faction-restricted drugs.
  • :artist_palette: Full animation, progress bar, and XP reward support.
  • :stethoscope: Fixed prior server load issues — all custom drug handlers now initialize correctly.

:rocket: Performance Overhaul

  • :brain: CPU usage reduced by 50–80% with coordinate caching & dynamic sleep cycles.
  • :broom: Smart entity cleanup (health monitor, dead ped cleanup, 2s intervals).
  • :feather: Prompt flicker completely eliminated across selling, crafting, informants, and emote systems.
  • :light_bulb: Intelligent ped scanning cooldowns (400ms for dealers, 500ms for informants).
  • :balance_scale: Ultra-responsive prompts (0–1ms in hideouts) with optimized idle sleeping (1200ms+).

:speech_balloon: Interaction & Realism Updates

  • :no_pedestrians: Prompts now only appear on foot — no interactions on horseback or in wagons.
  • :horse: Mounted or wagon NPCs are ignored as valid sale or informant targets.
  • :bell_with_slash: Prompts automatically hide when player mounts or enters a vehicle.
  • :handshake: Synced animations between all players during drug sales and deliveries.
  • :satellite: Alert blips now radius-only (BLIP_MODIFIER_AREA_NO_BLIP) for stealth realism.

:bomb: Law Enforcement & Raids

  • :compass: Raid system now includes callbacks for:

    • Creation
    • Attempts
    • Success
    • Failure
    • Respawn
  • :crossed_swords: Lawmen can track, breach, and loot criminal hideouts.

  • :money_bag: Rewards include configurable money & item payouts.

  • :satellite_antenna: Discord webhooks log all major events (raids, laundering, sales).


:brain: Core Gameplay Overview

:derelict_house: Hideouts & Black Markets

  • Dynamic hideouts with regeneration after raids.
  • Separate black market system for rare items and drug sales.
  • Fully synced access control for gangs or individuals.

:dollar_banknote: Drug Sales & Laundering

  • Realistic street selling with smart NPC behavior.
  • NPCs may refuse, attack, or alert law enforcement.
  • Dynamic pricing, randomized quantities, and sell limits.
  • Currency-based laundering — convert dirty money into clean cash.

:test_tube: Production Chain

  • Multi-stage process: Harvest → Process → Package → Deliver.
  • Configurable recipes, ingredients, and town-based restrictions.
  • Full VORP Core skill integration for XP progression.

:horse: Delivery Missions

  • Wagon-based contraband runs with ambush risks.
  • Level-gated access with XP & reward scaling.
  • Dynamic drop points and law enforcement response times.

:puzzle_piece: Dependencies

  • :brick: vorp_core
  • :brick: vorp_inventory
  • :brick: oxmysql

:movie_camera: Showcase

:play_button: Watch Legends: Drugs v2.1


:shopping_cart: Purchase

:receipt: Tebex Store


:receipt: Technical Info

Feature Status
Code Access :locked: Escrow Protected
Subscription :cross_mark: No
Lines 4500+
Requirements VORP Core, VORP Inventory, oxmysql
Support Yes

:loudspeaker: Update Release — Legends Drugs V2.1.6

Dynamic Skill System, Fixes & Enhancements


:hammer_and_wrench: Skill System Enable/Disable

  • Added a global toggle to turn the entire skill system on or off

  • Config.SkillSystem.enabled = false → No skill checks, no XP rewards

  • When disabled:

    • All crafting/processing/packaging works with no level requirements
    • No XP is awarded
  • CheckSkillRequirement() now automatically returns true if disabled

  • AddSkillExperience() exits early with no XP when disabled


:bug: Bug Fixes

  • Fixed critical nil value errors in skill requirement checks

  • Fixed skillData nil issues in packaging, processing, and production fail notifications

  • Added proper GetDrugsSkillData() calls before accessing skill data

  • Files fixed:

    • server/s-packaging.lua
    • server/s-process.lua
    • server/s-production.lua

:high_voltage: Dynamic Skill Assignment System

  • Fully flexible skill selection for each activity

  • Three-level priority system:

    1. Per-recipe override
    2. Category override
    3. Default skill
  • Category overrides for: processing, production, packaging, deliveries, selling

  • Per-recipe skill overrides (e.g., SwampGram → Herbalism)

  • Backward compatible — defaults to "Drugs" skill

  • Added: GetSkillForAction() in shared/utils.lua


:money_bag: Drug Selling XP

  • New XP rewards for selling drugs to NPCs

  • Config.DrugSellingXP supports:

    • Base XP
    • Per-item overrides
    • Quantity multipliers
  • Informants do not award XP

  • Uses dynamic skill system (ex: switch to “Trading” skill)


:wrench: Core Function Improvements

  • Skill functions now support dynamic skill names
  • AddSkillExperience() now accepts optional skillName
  • CheckSkillRequirement() works with any skill & respects enabled setting
  • GetSkillData() now supports all skills

:bookmark: Version:

V2.1.6

:skull: Legends: Drugs | Update Release v2.2.0

:alembic: The Most Advanced Drug & Crime Economy for RedM


:skull: Step Deeper Into the Underworld

Legends: Drugs v2.2.0 takes RedM criminal roleplay to the next level.
This isn’t just a drug script — it’s a living ecosystem powered by intelligent NPCs, deep production systems, dynamic selling, black markets, deliveries, laundering, and law enforcement gameplay.

Build your empire… or dismantle one.

Every action matters. Every choice has consequences.
The world reacts to you.


:police_car_light: NEW IN v2.2.0 – Major Overhaul

:test_tube: Reworked Drug System

  • Unified production pipeline: Process → Produce → Package

  • Recipe unlock system using book items

  • Level-based crafting tied to VORP skills

  • Custom drugs fully integrated into core system

  • Steam ID whitelist support for exclusive content


:artist_palette: Redesigned Crafting UI

  • Modern, clean, and fully interactive interface

  • Recipe cards with XP, requirements, and descriptions

  • Skills panel with ranks, badges, and progression

  • Draggable UI with saved positions

  • Auto-loaded item data from your database


:money_bag: Advanced NPC Selling

  • Context-aware NPC dialogue system

  • NPC reactions: accept, reject, attack, or alert law

  • Buyer preference tiers (low / mid / premium)

  • Configurable sell limits when no police are online

  • Immersive synced props during transactions


:detective: Black Market Expansion

  • Dynamic underground trading system

  • Randomized stock each restart

  • Money laundering with configurable fees

  • Supports money, gold, and item trading

  • Weapon purchasing support


:detective: Informant System (Enhanced)

  • NPCs provide real or fake intel on hideouts & markets

  • Chance to alert law enforcement instead

  • Configurable radius-based search areas

  • Balanced outcomes for criminals and law


:delivery_truck: Delivery Missions Upgrade

  • Wagon-based contraband transport

  • Randomized routes and drop-off points

  • NPC ambush system with configurable difficulty

  • Level-gated access with XP scaling

  • Smart GPS navigation system


:police_officer: Law Enforcement Improvements

  • Raid system with full lifecycle callbacks:

    • Creation, Attempt, Success, Failure, Respawn
  • Silent alerts for stealth gameplay

  • Chance-based alerts on successful deals

  • Reward system (money & items)

  • Discord webhook logging for all major events


:speech_balloon: NPC Interaction System

  • Cinematic RDR-style dialogue UI

  • NPCs face players and react naturally

  • Smooth animations with no freezing

  • Player locked during interactions for immersion


:chart_increasing: Skills & Progression

  • Full VORP Core integration

  • Separate skill categories:

    • Processing

    • Production

    • Packaging

  • XP scales with crafting quantity

  • Optional level requirement system


:rocket: Performance Overhaul

  • 50–80% CPU reduction via smart optimizations

  • Dynamic sleep cycles & coordinate caching

  • Smart entity cleanup system

  • Zero prompt flickering

  • Ultra-responsive interactions (0–1ms in active zones)


:gear: Developer & Integration Suite

  • Full export system for:

    • Sales, crafting, deliveries, raids, unlocks
  • Ready for:

    • Dispatch systems

    • Analytics

    • Custom integrations

  • Detailed documentation included


:brain: Core Gameplay Systems

:derelict_house: Hideouts & Black Markets

  • Dynamic hideouts that regenerate after raids

  • Controlled access for gangs or individuals

  • Fully synced world interactions


:dollar_banknote: Drug Sales & Laundering

  • Realistic street dealing with intelligent NPC behavior

  • Dynamic pricing, quantities, and risks

  • Money laundering system for clean cash conversion


:test_tube: Production Chain

  • Multi-stage system from raw materials to distribution

  • Configurable recipes and restrictions

  • Skill-based progression system


:horse: Delivery Missions

  • High-risk transport gameplay

  • Ambushes, law responses, and scaling rewards

  • Dynamic destinations and routes


:puzzle_piece: Dependencies

  • vorp_core

  • vorp_inventory

  • oxmysql


:movie_camera: Showcase

:play_button: https://youtu.be/jyeqt2IsCN4


:shopping_cart: Purchase

:receipt: Tebex Store


:receipt: Technical Info

Feature Status
Code Access :locked: Escrow Protected
Subscription :cross_mark: No
Lines 4500+
Requirements VORP Core, Inventory, oxmysql
Support :white_check_mark: Yes