Drugs System

This item is free.

🚨 What You Get:

βœ… Modular System – Add unlimited jobs (cocaine, meth, weed...) via config.lua
βœ… 3-Step Process – Gathering, Processing, Selling
βœ… Interactive World – Pick up props with ox_target (plants, crates, etc.)
βœ… Server-Synced Props – Everyone sees the same spawn/despawn logic
βœ… Police Requirement System – Set how many cops must be online
βœ… Time Restrictions – Enable activities only at night, day, or custom hours
βœ… Auto Item Registration – No more items.lua headaches
βœ… One-File Config – All logic is driven by config.lua

🌿 Illegal Production Chain System β€” ESX + Overextended

Take your FiveM server to the next level with a fully modular, immersive, and highly configurable illegal production system, built for ESX and powered by Overextended libraries (ox_lib, ox_target, ox_inventory).

Whether you're running a realistic roleplay server or aiming to add dynamic criminal gameplay, this script gives you total control over how illegal jobs are created, managed, and experienced.


πŸ”‘ Key Features

πŸ”§ Modular Job System

Create unlimited illegal production chains (e.g., Cocaine, Meth, Weed, etc.) by simply adding entries to the Config.Jobs table in config.lua. No need to touch the main code β€” full scalability, no coding required.

πŸŒ€ Three Distinct Phases per Chain

Each production chain includes:

  • Gathering: Players search and collect raw materials.

  • Processing: Materials are refined into final products.

  • Selling: Final products are sold for in-game currency.

Every step can be customized with different props, timings, prices, police requirements, and more.

🌱 Immersive Prop-Based Gathering

Forget boring static collection zones β€” props like plants or crates spawn dynamically in configurable areas. Players must locate and interact with them using ox_target.

  • Fully server-synced state (everyone sees the same props).

  • Configurable cooldown and respawn time after collection.

πŸš” Police Requirements (Dynamic Risk System)

Set a minimum number of cops required for each activity: gathering, processing, or selling.

  • Define which jobs count as law enforcement (e.g., police, fbi, swat).

  • Enhance realism and create risk-reward gameplay loops.

πŸ•’ In-Game Time Restrictions

Control the hours during which each phase is accessible based on the in-game clock.

  • Example: Allow gathering only at night (22:00–06:00), selling only during the day.

  • Easily disabled by setting full-day availability (0–24).

🧩 Full ox_inventory Integration

  • Automatic item registration from config.lua β€” no manual entries.

  • Uses native ESX and ox_inventory functions for seamless inventory and item management.

βš™οΈ One-File Configuration (config.lua)

Easily customize:

  • Coordinates for zones and interaction points

  • Item names, weights, and labels

  • Processing times and selling prices

  • Props, spawn limits, and cooldowns

  • Target UI icons and labels

  • Police/job requirements and time windows

  • Money type (e.g., money, black_money) for payments


πŸ“¦ Dependencies

This script requires the following resources:


🎯 Perfect For

βœ… RP servers wanting immersive and risky criminal activities
βœ… Admins looking for zero-code expansion and clean config
βœ… Players who love interactive, prop-based gameplay

Screenshot:

82e832722a2721cf06b7b8a0a56baf9e87e60c0d.png

a207b72276f8c54dcf36a8a3de4ad9a64050df54.png


5fab1ef5e7e2dcead0cc3847966bf178b4875e14.png