đź“•->[ESX\QBX] DrugLabs-Systemđź”§(free)

DrugLabs System

Advanced Drug Processing & Dynamic Market for FiveM


:pushpin: Overview

DrugScene is a fully synchronized drug lab system built for FiveM
servers using ESX, ox_inventory, ox_target, and ox_lib.

Showcase: https://youtu.be/fZARGMBqp1I?si=v-9OQPAidHDViL6Q

The script allows players to:

  • Run multi-stage drug production processes
  • Use fully synced animation scenes with objects
  • Progress through locked stage orders
  • Receive rewards after completing full production
  • Sell products to dynamic NPC dealers
  • Affect a live demand-based market system
  • Log all activity directly to Discord via Webhook

Everything is configurable and modular via Config.lua.


:gear: Dependencies

Make sure the following are installed:


:test_tube: Available Processes


:ice: Meth Lab

Stages Order:

  1. cook
  2. smash
  3. mega

Required Items

  • acid
  • ammonia
  • acyclovir
  • aluminumoxide

Final Reward

  • meth_packaged

Features

  • Multi-scene synchronized animations
  • Stage locking system
  • Item validation before first stage
  • Object cleanup protection
  • Player death & disconnect handling
  • Station lock (prevents two players using same station)

:snowflake: Cocaine Lab

Stages Order:

  1. mix
  2. press

Required Items

  • bakingsoda
  • baggy_cocaine

Final Reward

  • cocaine_packaged

Features

  • Multi-layer press animation system
  • Progressive stage validation
  • Inventory removal on start
  • Automatic reward on completion

:gear:performance

image

:money_bag: Dynamic Drug Market System

Players can sell products to configured NPC dealers.

Market Features

  • Live demand modifier per dealer
  • Price changes based on:
  • Time (market recovery)
  • Quantity sold
  • Zone multiplier support
  • Sale limit per transaction
  • Black money or regular money payout
  • Discord logging for every sale

Demand System

Each dealer has:

  • min / max demand range
  • Recovery rate per minute
  • Demand drop per unit sold
  • Max items per sale

The more players sell, the lower the price goes.
If the market cools down, prices slowly recover.


:locked_with_key: Stage Control System

  • Players must follow the defined stage order.
  • Cannot skip steps.
  • Cannot start next stage without completing previous.
  • Stations are locked while in use.
  • If player cancels / dies / disconnects:
  • Scene is stopped
  • Objects are removed
  • Station is released
  • Logged to Discord

:satellite_antenna: Discord Webhook Logging

Every important action is logged:

  • Process Started
  • Stage Completed
  • Reward Given
  • Missing Items
  • Station Busy Attempt
  • Player Death During Process
  • Player Disconnect During Process
  • Product Sold

Webhook embed includes:

  • Player Name
  • License
  • Discord Identifier
  • Process & Stage
  • Sold Amount & Price
  • Demand Modifier

Fully customizable from Config.Webhook.


:hammer_and_wrench: Configuration

All processes are defined inside:

Config.Processes

You can easily:

  • Add new labs
  • Add new stages
  • Define custom animations
  • Define objects per scene
  • Enable multi-scenes
  • Configure required & reward items

Dealers are defined in:

Config.Sell

You can configure:

  • NPC model
  • Location
  • Base price
  • Zone multiplier
  • Account type
  • Demand behavior

:soap: Safety & Stability

  • Network entity control validation
  • Timeout protection
  • Automatic cleanup on:
  • Resource stop
  • Player death
  • Player drop
  • Station ownership tracking
  • Server-side stage validation (anti-exploit logic)

:rocket: Installation

  1. Install the script: https://overtrue-roleplay-developmen.tebex.io/package/7283850
  2. Place the script inside your resources folder
  3. Ensure dependencies are started before this resource
  4. Add to server.cfg: ensure DrugLabs-System
  5. Configure items inside ox_inventory
  6. Configure webhook (optional but recommended)

:pushpin: Notes

  • Built with performance and synchronization in mind.
  • Fully server-validated to prevent stage abuse.
  • Designed to be expandable for additional drug systems.

[:red_circle:]Latest scripts:

Code

Code is accessible only configuration file
Subscription-based No
Lines (approximately) 1200
Requirements & dependencies ESX Framework \ ox inventory \ ox target \ ox lib
Support Yes - send me every problem here in the topic
7 Likes

Qbcore / qbx versions will be available soon.

1 Like

this got probably a backdoor fxap and server tread hitch

That’s a pretty big claim. If you found a backdoor or hitch, feel free to point it out — I’ll gladly look into it.

The language cannot be changed

Yeah I didn’t think about it, let me know the language you want.

does this come with the mlos

Hi mate, I mentioned the links to the dlc’s in the description.

@apimpnamedbeazy

any info on qbx version? would be awesome! Also is it possible to configure it via own script/hook it so certain labs are faction/terretory locked?

Hi there mate, about qbx version hope to convert it next weekend between 15-17.5

The update will include:

Option to change language via config

Qbx version.

For any other suggestions text me.

@Arillus

Amazing man! Cant wait to test it once you push the Vers for Qbx! Keep up the great work

Thank you mate, I will tag you don’t worry.

1 Like

:file_folder: Update:

@chenqingjun

1 Like

Thanks for the @! I will test this diamond out tomorrow once i wake up, if i encounter any issues or logs ill gladly report back :slight_smile:

Hello support this qs-inventory?

Hi mate, I can do that for you no problem.

Keep in touch with me here or if you want we can use discord as well,let me know.

All good?

Thank you for sharing. I would like to ask you a question. I have used your asset, but it seems that there is no data or images for ox_inventory in it. After adding it to the server, nothing will appear. I hope to receive your help.

Sorry, I forgot to explain. It’s a qbox, and after adding it, everything doesn’t seem to display. Did you not add ox data

Hi there, I would like to help you please mention your discord details so we can keep talking there.