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
Drug Workflows
Each drug follows the same gather → process → sell loop, but with unique locations, supplies, and interiors.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
1
Add dependencies to server.cfg
Start all required resources above sh-drugs in your
server.cfg:server.cfg
2
Set your framework
Open
shared/config.lua and set Config.Framework to match your server:3
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:4
Tune economy values
Adjust prices, processing times, and the cop-call chance to fit your server’s economy before going live.
5
Restart and test
Restart the resource and walk through each drug chain in-game to confirm interiors load and NPC zones are active.
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.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.