πŸ“±anox-drugsell

✨ Overview

anox-drugsell is a zone-based drug system with dynamic prices and a rep system. Sell more to build rep for each drug, increasing your chances of successful NPC deals. Set your own pricesβ€”but if your rep is low and your price is high, NPCs might reject you or alert the police.

✨ Features

  • Uses ox_lib for dispatch.

  • Police can be alerted based on player’s price and rep.

  • Base alert chance is 10% (fully configurable).

  • Prices vary by zone β€” some give higher payouts.

  • Uses a multiplier system (easily configurable).

  • Option to enable/disable zone-based pricing.

  • Players can view dispatch chance, success chance, and zone info.

  • Can be disabled for cleaner experience or more serious RP.

  • Certain jobs (e.g., police) can be blocked from selling drugs.

  • Players set their own selling price.

  • Each drug has a configurable min/max price.

  • Option to receive either dirty money or clean cash.

  • Gain rep for each specific drug you sell.

  • More rep = better chances of NPCs buying.

  • Max rep per drug is 100 (configurable).

  • Failed deals reduce rep β€” price smart!

  • Rep is saved in the database for a smooth experience.

  • Easily add any number of drugs in the config file.

  • NPCs walk up and wait a set amount of time (configurable) during /drugsell.

  • Difficulty and patience levels can be adjusted.

  • You can choose which drug to sell in Drug Selling Menu.

  • Fully tested with ESX, QBCore, and Qbox.

  • Localization support through ox_lib.

✨ Requirements

  • ESX

  • QBCore

  • Qbox

✨ Installation Guide

CREATE TABLE IF NOT EXISTS `anox_drugrep` (
  `license` varchar(50) NOT NULL,
  `drug` varchar(50) NOT NULL,
  `rep` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`license`, `drug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ensure oxmysql
ensure ox_lib
ensure anox-drugsell

Step 4: Configure the Resource

  • Open the config.lua file in the anox-drugsellfolder

  • Set your preferred framework:

    • Config.Framework = 'esx' for ESX

    • Config.Framework = 'qbcore' for QBCore

    • Config.Framework = 'qbox' for QBox

✨ Preview

Last updated