DrugFX by ModFreakz
DrugFX by ModFreakz - professional ESX script with custom features and optimized performance for FiveM servers Compatible with ESX framework.
DrugFX by ModFreakz - Advanced Drug Consumption & Effects Framework
DrugFX revolutionizes how drug consumption works on FiveM servers by providing a highly configurable, effect-driven framework that goes far beyond simple health boosts or basic screen effects. This sophisticated system allows you to create realistic, varied, and immersive drug experiences with multiple effect types, customizable intensity levels, and extensive integration options. Whether you're running a hardcore roleplay server or a casual community, DrugFX gives you complete control over how drugs affect your players.
What Makes DrugFX Different
Most drug scripts offer basic functionality: consume item, get simple screen effect, done. DrugFX takes a fundamentally different approach by separating drug types from drug items, allowing you to create sophisticated drug ecosystems where different strains, qualities, or preparation methods produce varied effects. This system enables realistic scenarios where high-quality cocaine provides different experiences than low-grade product, or where marijuana strains have distinct characteristics.
Core Framework Features
- Drug Types System - Pre-defined effect categories (stimulants, depressants, hallucinogens, etc.) that control visual, physical, and gameplay effects
- Drug Items System - Individual consumables that trigger drug types with varying intensity levels
- Intensity Scaling - Same drug type can be triggered at different strengths based on item quality or quantity
- Multiple Effect Categories - Visual distortions, movement alterations, health impacts, armor changes, and custom screen effects
- Configurable Duration - Control how long each drug effect lasts, with different durations per intensity level
- Stacking and Combinations - Multiple drugs can be active simultaneously, creating complex effect combinations
- Event-Driven Architecture - Extensive event system allows external scripts to hook into drug consumption and effects
Pre-Configured Drug Types
DrugFX comes with several pre-configured drug types ready to use:
- Stimulants - Increased movement speed, energy boost, enhanced awareness effects
- Depressants - Slowed movement, drowsiness, relaxation visuals
- Hallucinogens - Intense visual distortions, color shifts, reality-bending effects
- Pain Relievers - Health regeneration, damage resistance, calming effects
- Performance Enhancers - Temporary stat boosts, endurance increases
Each type includes carefully balanced effects that create genuine gameplay impact without being overpowered or game-breaking. The visual effects are noticeable and immersive without making the game unplayable.
Perfect For These Server Types
- Hardcore Roleplay Servers - Realistic drug mechanics enhance criminal and medical roleplay depth
- Gang/Criminal Servers - Drug dealing becomes more engaging when products have distinct, meaningful effects
- Medical Roleplay - Hospitals and EMS can treat overdoses and drug-related emergencies
- Party/Nightlife Servers - Club scenes become more immersive with realistic substance effects
- Survival Servers - Pain relievers and performance enhancers add strategic consumable choices
Extensive Customization Options
DrugFX's configuration system provides exceptional flexibility:
- Custom Effect Intensities - Define exactly how strong each effect should be at different levels
- Duration Controls - Set how long effects last, with different durations for different intensities
- Visual Effect Customization - Choose from multiple screen effect types or create custom visual distortions
- Movement Modifiers - Control walk speed, run speed, and movement mechanics during effects
- Health/Armor Impacts - Configure healing, damage, or protective effects
- Item Integration - Connect any item in your inventory system to trigger effects
ESX Integration (Optional)
While DrugFX works standalone, it includes optional ESX (es_extended) integration for servers using that framework. The ESX support provides:
- Pre-configured drug items that work with ESX inventory
- Item consumption hooks that trigger effects automatically
- Easy setup for servers already running ESX
- No modifications required to existing ESX resources
However, ESX is entirely optional - the framework works perfectly without any framework dependency, making it compatible with QBCore, QBOX, or custom systems.
Advanced Developer Features
For developers looking to create complex drug systems, DrugFX provides extensive event hooks:
- Consumption Events - Trigger external scripts when players consume drugs
- Effect Start/End Events - Hook into when effects begin or expire
- Custom Value Passing - Send custom data to create unique per-item effects
- Addiction System Integration - Events designed specifically for external addiction/tolerance scripts
- Overdose Mechanics - Framework supports external scripts handling overdose scenarios
This event system means you can build sophisticated drug ecosystems where consumption affects addiction levels, tolerance builds over time, withdrawal symptoms occur, or overdoses trigger medical emergencies - all managed by external scripts that integrate with DrugFX events.
Technical Specifications
- Framework Compatibility: Standalone (works with any framework)
- ESX Support: Optional integration available
- Performance: Lightweight effect system with minimal resource usage
- Dependencies: Optional fivem-getwave for enhanced visual effects (recommended)
- Configuration: Lua config files with extensive documentation
- Client/Server: Properly synced client-side effects with server validation
Installation Overview
- Download DrugFX - Extract the resource to your server resources folder
- Install Dependencies - Optionally install fivem-getwave for enhanced effects (recommended)
- Configure Drug Types - Customize pre-configured types or create your own
- Set Up Drug Items - Define which items in your inventory trigger which effects
- Adjust Intensities - Fine-tune effect strengths and durations for your server balance
- Add to Server Config - Include DrugFX in your server.cfg
- Test Effects - Verify all drug types work as intended with appropriate intensity
Framework Compatibility
- âś… Standalone - Works without any framework (recommended for flexibility)
- âś… ESX - Optional integration with pre-configured items
- âś… QBCore - Compatible via custom item configuration
- âś… QBOX - Works with QBOX inventory systems
- âś… Custom Frameworks - Event system supports any framework with minor config
Recommended Addon: fivem-getwave
DrugFX is configured by default to work with fivem-getwave, an optional visual effect enhancement resource. While not required, fivem-getwave significantly improves the quality of screen distortion effects, making hallucinations and visual alterations more realistic and immersive. The resource is free and easy to install from GitHub.
Creating Custom Drug Types
The configuration system makes creating entirely new drug types straightforward. Want to add a fictional drug with unique effects? Simply define:
- Effect type (visual, movement, health, etc.)
- Intensity levels (low, medium, high)
- Duration for each intensity
- Visual screen effects
- Movement speed modifiers
- Any custom values for external script integration
This flexibility means DrugFX adapts to any server theme, from realistic modern drugs to fictional sci-fi substances or fantasy potions.
What Makes It Stand Out
DrugFX stands out by treating drug effects as a sophisticated framework rather than simple item consumption. The separation of drug types from drug items creates realistic depth where different products have genuinely different impacts on gameplay. The extensive event system means the framework grows with your server - as you add addiction scripts, medical systems, or criminal mechanics, DrugFX integrates seamlessly through its event hooks.
The developer-friendly architecture makes DrugFX particularly valuable for servers planning long-term drug-related gameplay systems. You're not locked into pre-defined behaviors - the framework provides the foundation, and you build exactly the drug ecosystem your server needs.
Why Server Owners Choose DrugFX
With 18 sales and strong developer community support from ModFreakz, DrugFX has proven itself as a reliable foundation for drug mechanics on FiveM servers. At $18.99, it offers exceptional value for a framework-level system that would take weeks to develop from scratch. Server owners appreciate the balance between pre-configured functionality (it works immediately) and extensive customization (you can modify everything).
Requirements
- FiveM server (any framework or standalone)
- Basic Lua configuration knowledge for customization
- Optional: ESX (es_extended) if using pre-configured ESX items
- Optional: fivem-getwave for enhanced visual effects (free, recommended)
More ModFreakz Scripts
DrugFX is part of the ModFreakz collection of high-quality FiveM resources. If you're impressed with DrugFX's quality and flexibility, check out other ModFreakz scripts for similarly well-designed systems across various gameplay categories.




