Dependencies
sh-drugs requires the following resources before you start the script:- PolyZone — zone detection for farm, processing, and sell areas
- ox_lib — progress bars, notifications, and UI components
- bob74_ipl — interior streaming for the Cocaine Lockup and Meth Lab
Supported Frameworks
| Value | Framework |
|---|---|
standalone | No framework — cash handled internally |
nat | NAT2K15 framework |
nd | ND_Core |
Drug Workflows
Each drug follows the same gather → process → sell loop, but with unique locations, supplies, and interiors.| Drug | Gather Method | Processing Supply | Interior |
|---|---|---|---|
| Weed | Harvest weed plants from a farm zone | Scissors ($100) | Biker DLC interior |
| Cocaine | Plant and harvest from a farm zone | Razor Blades ($100) | Cocaine Lockup |
| Meth | Collect materials from an NPC zone | Baking Powder, Soda, Battery Acid, Chloroform, Hydrogen Peroxide ($100 each) | Meth Lab |
| LSD | Collect materials from an NPC zone | Lysergic Acid, Morning Glory Seeds ($100 each) | Custom location |
Key Mechanics
Cop-Call System
Cop-Call System
Every time a player sells drugs to an NPC, the script rolls against
Config.ChanceToCallCops. On a hit, a server-wide police alert fires and broadcasts the GPS coordinates of the sale to all online players. Set this value to 0 to disable alerts entirely.Drug Effects on Consumption
Drug Effects on Consumption
When a player consumes a drug using a
/take* command, the script applies real GTA V screen effects (colour grading, blur, shaking) and temporary stat bonuses for the duration set in Config.EffectTime. Each drug has distinct visual effects to differentiate the experience.Time-Gated Dealers
Time-Gated Dealers
NPC drug buyers only appear between the in-game hours defined by
Config.MinimumTime and Config.MaximumTime. Players who arrive outside that window will find no dealers and cannot sell. This encourages active play during peak server hours.Configuration
Openshared/config.lua to adjust all core settings. The values below are the defaults shipped with the resource.
shared/config.lua
Installation
Add dependencies to server.cfg
Start all required resources above sh-drugs in your
server.cfg:server.cfg
Enable ox_target (optional)
If you run ox_target on your server, flip the flag and add
ox_target above sh-drugs in server.cfg:Tune economy values
Adjust prices, processing times, and the cop-call chance to fit your server’s economy before going live.
Inventory & Consumption Commands
Players use the following commands to check their inventory and consume drugs. All commands run client-side and require no ACE permissions.| Command | Description |
|---|---|
/weedinventory | Show current weed, processed weed, and scissors count |
/cokeinventory | Show current cocaine inventory |
/methinventory | Show current meth inventory |
/lsdinventory | Show current LSD inventory |
/takeweed | Consume one weed unit and apply screen effects |
/takecoke | Consume one cocaine unit and apply screen effects |
/takemeth | Consume one meth unit and apply screen effects |
/takelsd | Consume one LSD unit and apply screen effects |
/selldrugs | Open the NPC sell menu (must be inside a sell zone) |
The
/selldrugs command only works when you are within Config.SellToNPCDistance of an active NPC dealer and during the configured dealer hours. Outside those conditions the command produces no output.Tabs by Drug
- Weed
- Cocaine
- Meth
- LSD
Gather: head to the farm zone and harvest weed plants directly from the crop rows.Supply: buy Scissors from the supply vendor for $100.Process: enter the Biker DLC interior and begin processing. Two raw weed units yield one processed unit (
Config.AmountToProcess.Weed = 2).Sell: find a dealer active between MinimumTime and MaximumTime and use /selldrugs.