Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Drug Scripts

ESX Drugsale FiveM resource preview

ESX Drugsale

Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Dependencies
qtargetnovela-taskbarnovela-thermite
File size
5.5 kB
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

ESX Drugsale is a drug-run script for ESX servers. A dealer NPC hands out the run: the player gets a car, drives to buyers marked on the map, hands over cannabis or coke for cash and has to beat a hacking minigame along the way, or the police get alerted.

Features

  • Dealer NPC at a set start point; the run is started through a qtarget option ("Start the drug run")
  • Run vehicle picked at random from a car list (coquette4, comet2, elegy2) and spawned on the first free of three spawn points
  • Buyers spawn at one of 49 configurable locations, with a GPS route and a random ped model from a list of 7
  • Delivery through qtarget ("Deliver drugs") with a handshake animation and a progress bar; each delivery sells one unit of cannabis (150) or coke (180) for cash, checked and paid on the server
  • Number of deliveries per run (default 1) and the waiting time for the next buyer are set in the config
  • At random intervals during the run the player has to pass a hacking minigame; on failure the client event noveladrugsale is fired for your police alert
  • All settings in shared.lua: start point, vehicle spawn points, buyer locations, ped and car lists, item names and prices

Requirements

  • ESX (es_extended), loaded through the esx:getSharedObject event
  • qtarget, novela-taskbar and novela-thermite
  • A resource that handles the client events notification (messages) and, if you want them, keys:received (car keys) and noveladrugsale (police alert)
  • The items cannabis and coke on your server, or your own names in shared.lua

Installation

  • Extract the archive and copy the rb-drugsale-esx folder into your resources.
  • Adjust item names, prices and coordinates in shared.lua.
  • Add ensure rb-drugsale-esx to your server.cfg after its dependencies.

Notes

  • server.lua also contains older money events (mission:finished, drugdelivery:server) that take the amount from the client and are not used by this script; remove them before using it on a live server.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

ESX Drugsale

In your downloads
  • FiveM Torture System
    • ESX
    • QBCore
    Not for your framework

    FiveM Torture System

    Danzo Scripts

    $24.00$16.80
  • Boss Menu
    • ESX
    • QBCore
    Not for your framework

    Advanced Boss Menu

    Eyes Store

    $5.00$3.50
  • Drugs Creator FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Drugs Creator

    Jaksam

    $50.00$35.00
  • Gang War
    • ESX
    • QBCore
    Not for your framework

    Wasabi Gang War Phone (ESX/QB)

    Wasabi Scripts

    $26.00$18.20
  • Home Robbery Script FiveM resource preview
    • ESX
    Not for your framework

    Home Robbery Script

    $25.99$18.19
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $32.00$22.40
  • Home Robbery
    • ESX
    Not for your framework

    FiveM Home Robbery

    $7.99$5.59
  • FiveM Drug FX
    • ESX
    Not for your framework

    DrugFX by ModFreakz

    ModFreakz

    $18.99$13.29