[ESX] esx_tk_drugs - Advanced Drug System and Drug Selling (With UI)

esx_tk_drugs

[ Video ]
[ QBCore version ]

About

  • Uses FiveM Asset Escrow System, but if there is anything you would like to get changed or added to the editable file, contact me and I can probably change it!

  • Features


    • Dark Web Tablet
      • Can be used to access the darkweb
      • Custom UI
      • You can purchase drug laboratories and sell drugs via the darkweb
      • Applications:
        • Marketplace
        • Darkchat

    • Drug Laboratories
      • By default, 11 unique drug labs

      • Labs can be purchased by players and once purchased, they will be removed from the darkweb marketplace

      • By default 3 different lab types: meth, coke and weed (more can be added easily)

      • Labs generate items set in the config automatically and player can upgrade their lab by hiring workers, guards, purchasing equipment etc.

      • Boss Menu

        • Hire Workers
          • Workers increase the amount of items that you lab generates
          • Workers need to be picked up from a random location and taken back to the lab
        • Hire Guards
          • Guards will spawn and defend if someone tries to destroy your lab
          • Guards also need to be picked up from a random location and taken back to the lab
        • Purchase Equipment
          • Equipment can be purchased to increase lab stats
        • Items Menu
          • Withdraw drugs lab has generated
          • Deposit items needed to generate drugs
        • Stats
          • Shows your lab stats and items that it generates
      • Enter/Exit Menu

        • Change lock status
          • Changes lab lock status (either locked or unlocked)
            • When unlocked, other players can enter the lab
        • Add access
          • Add access to lab for other players
          • Access will stay over restart
          • Players with access can manage the lab
        • Remove access
          • Remove access from players
        • Sell (only outside)
          • Sell back percentage can be set in the config
        • Place Equipment (only inside)
          • Equipment can be purchased from the lab boss menu
          • Some equipment are only decorative/furniture, some increase the lab stats
            • Can either decrease time it takes to generate items or the amount of items the lab generates
            • Different equipment have different stats and prices
        • Remove Equipment (only inside)
        • Kick Players (only inside)
          • Kick out players inside your lab
        • Destroy Lab (only outside)
          • Other players can try to destroy your lab
          • Destroying can be started if enough lab owners are online (can be changed in config)
          • Destryoing has a configurable time and once destryoing start, the lab owner will get an alert and the lab guards will spawn to protect the lab
          • If destryoing is complete successfully the lab stats will be reset and lab ownership lost
            • You can also configure, if:
              • Lab ownership should be given to the lab destroyer
              • Lab items should be given to the destroyer
              • Lab stats should reset or not
        • Seize Items (only inside)
          • Police can seize all items from a lab if they decide to raid a drug lab
          • By default, police can enter all drug labs

    • Drug Selling
      • Buy offers for drugs will be automatically generated every 1-5 minutes into the darkchat application on your tablet
      • NPC is from a random area (areas are defined in config, for example grove)
        • Each area has its own drug selling reputation
          • Rep will increase by 1 once you make a successful sale in that area
      • NPC can either be client or a dealer
        • Clients purchase less drugs, dealers purchase more
        • To get dealers, your reputation for the area where the offer is from must be greater than 100
      • If you decide to accept an offer, you will first get a GPS to the center of the area where the NPC is from and when you arrive, you will get the exact location
        • Police alert chance and settings can be changed in config

  • Supports ox_lib and ox_target

Screenshots

Config

Purchase (19.99€ + VAT)


My other ESX Scripts

Code is accessible Partially
Subscription-based No
Lines (approximately) ~5000
Requirements es_extended, mysql or oxmysql
Support Yes
22 Likes

This looks like a script

1 Like

Update 1.0.1

  • Fixed ownership transferring not working with ox_lib
  • Fixed bugs in worker hiring if player didn’t have a vehicle nearby

Update 1.0.2

  • Fixed tablet background image not stretching correctly for larger resolutions
  • Fixed error on start when using mysql-async

Update 1.0.3

  • Fixed menu not working on some occasions
  • Fixed errors with ox_lib showTextUI

Update 1.0.4

  • Fixed error when trying to hire a guard

Update 1.0.5

  • Several bug fixes

Update 1.0.6

  • Added a new config option Config.CanDepositDrugs. When set to true, you can deposit back items that a lab generates into the lab storage
  • Lab price is now shown in the marketplace
  • Fixed not being able to give access to players that are out of scope
  • Fixed not being able to deposit items when using ox_lib
  • Fixed sell drugs text not disappearing when using ox_lib
  • Fixed hire text not disappearing when using ox_lib

Update 1.0.8

  • Minor improvements and fixes

Update 1.0.9

  • Minor bug fixes

Update 1.1.0

  • Fixed stats menu bugging out sometimes
  • Prevent opening of exit and boss menu when removing or placing equipment
  • Fixed cancel equipment text bugging out occasionally

Update 1.1.1

  • Fixed few rare errors

Update 1.1.2

  • Minor bug fixes

this looks pretty cool!

1 Like

Update 1.1.3

  • Minor improvements to code

Update 1.1.4

  • Added function GetSharedObject() to the editable server file

Update 1.1.5

  • Fixed being able to enter labs without owner when ox_target was used
  • Improved seize items menu for police

Update 1.1.6

  • Added Config.TargetDistance

Update 1.1.7

  • Small fixes

Update 1.1.8

  • Add Config.MaxLabAmount

Update 1.1.9

  • Fix drug selling not working for some older esx versions