Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
JZ Drug Script

Description

JZ Drug Script is a drug script for ESX. Players collect weed, coke and meth at fixed spots, pack them and sell the packed drugs to a dealer NPC for black money.

Features

  • Three drugs, each with its own collect and pack spots: weed in east Los Santos, coke at the docks and meth in Paleto Bay (coordinates in server/config.lua)
  • Press E at a spot to collect one unit after a 3-second progress bar
  • Packing uses 2 raw units for 1 packed unit (verpakwiet, verpakcoke, verpakmeth) and needs at least 3 raw units in the inventory
  • Dealer NPC with a menu per drug; the player types the quantity and is paid in black_money
  • Sale prices per drug, dealer and spot texts set in server/config.lua
  • Optional sale log to a Discord channel through Config.Webhook (empty by default)

What’s included

  • jz-drugs: the drug script (interaction distance and ESX trigger in the config)
  • jz-drugs-maps: drug lab interiors (including a meth lab and a weed interior) and edited buildings for the drug locations
  • br-menu: menu with optional click sound
  • progressBars: progress bar UI
  • jz-drugs.sql with the items weed, coke, meth and their packed versions

Requirements

  • ESX with the esx:getSharedObject event and ESX dialog menus (ESX.UI.Menu) for the quantity input

Installation

  • Copy the four resources from [jz-drugs] into your resources.
  • Import jz-drugs.sql.
  • Add ensure jz-drugs, ensure jz-drugs-maps, ensure br-menu and ensure progressBars to your server.cfg.

Notes

  • The collect events do not check the player’s position and the sell events do not reject negative quantities, so review jz-drugs/server/main.lua before using it on a live server.

Related resources

All resources →