Bzk Selldrugs

Bzk Selldrugs

โ‚ฌ14.90

Add to Basket

BZK SellDrugs

Drug selling system with NPCs for RedM/VORP.

{F1EC1542-92A2-4388-803D-B2B39F73EBAE}
{AAE21AF3-EBC3-42F8-B0C1-320AC61FF326}


๐Ÿ“‹ Features

  • NPC Interaction: Sell drugs directly to NPCs on the streets.
  • Dynamic Pricing: Prices vary depending on the time of day.
  • Modern NUI Interface: Beautiful and responsive interface.
  • Inventory Integration: Compatible with VORP Inventory and RSG Inventory.
  • Police Alert: NPCs may alert the police if they refuse the deal.
  • Quantity System: Sold quantity varies according to the time of day.
  • Spam Prevention: Each NPC can only be interacted with once per restart.

๐ŸŽฎ How to Use

For Players

  1. Type /selldrugs in the chat to activate the system.
  2. Click on an NPC to start the negotiation.
  3. The NPC will walk to you and start the dialog.
  4. Select the drug from your inventory.
  5. Enter the desired price (within the allowed range).
  6. Wait for the NPCโ€™s response.

โš™๏ธ Configuration

Edit the config.lua file to adjust prices, quantities, and available drugs.

Example: Prices by Time

prices = {
    {startHour = 0, endHour = 6, minPrice = 15, maxPrice = 25},    -- Night
    {startHour = 6, endHour = 12, minPrice = 20, maxPrice = 35},   -- Morning
    {startHour = 12, endHour = 18, minPrice = 25, maxPrice = 40},  -- Afternoon
    {startHour = 18, endHour = 23, minPrice = 30, maxPrice = 50}   -- Evening
}

Example: Quantities by Time

quantities = {
    {startHour = 0, endHour = 6, minQuantity = 1, maxQuantity = 3},    -- Night
    {startHour = 6, endHour = 12, minQuantity = 2, maxQuantity = 5},   -- Morning
    {startHour = 12, endHour = 18, minQuantity = 3, maxQuantity = 7},  -- Afternoon
    {startHour = 18, endHour = 23, minQuantity = 5, maxQuantity = 10}  -- Evening
}

Configured Drugs

drugs = {
    {name = "cigar", label = "Cigar", item = "cigar"},
    {name = "marijuana", label = "Marijuana", item = "marijuana"},
    {name = "heroin", label = "Heroin", item = "heroin"},
    {name = "meth", label = "Methamphetamine", item = "meth"},
    {name = "lsd", label = "LSD", item = "lsd"}
}

๐Ÿ”ง Dependencies

  • VORP Core or RSG Core (main framework)
  • VORP Inventory or RSG Inventory (inventory system)
  • Notification System (already included in the script)

๐ŸŽฏ Features Overview

  • NPC Detection: Only NPCs can be interacted with.
  • Duplicate Prevention: Each NPC can only be used once.
  • Navigation: NPCs walk to the player using NavMesh.
  • Camera: Focuses on the NPC during dialog.
  • Freeze: Player and NPC are frozen during negotiation.
  • Dynamic Prices: Vary according to the time of day.
  • Validation: Prices and quantities must be within the configured range.
  • Acceptance Chance: 50% chance the NPC will accept.
  • Police Alert: 50% chance to alert the police if refused.
  • Notification: Police receive an alert on the server.

๐Ÿš€ Installation

  1. Download the resource.
  2. Place it in your serverโ€™s resources folder.
  3. Configure the framework and drugs in config.lua.
  4. Add ensure bzk_selldrugs to your server.cfg.
  5. Restart your server.

๐Ÿ”„ Compatibility

  • Supported Frameworks: VORP Core and RSG Core
  • The script automatically detects the framework and adapts all functions.

Quick setup:

Config.Framework = 'VORP' -- or 'RSG'

๐Ÿ†˜ Support

For questions or support, contact us via Discord.


๐Ÿ“„ License

This project is under the MIT license. See the LICENSE file for more details.