Core Drugs (core_drugs) is a drug system for ESX: players grow drug plants, process the harvest at processing tables and then consume the drugs or sell them to an NPC dealer. You can create your own drugs and plants and give each drug up to 14 effects, from visual effects to buffs. Compatible with OneSync and ESX 1.1, 1.2 and 1.final.
The download also contains the QBCore build of Core Drugs.
Features
- Plant seeds anywhere or only inside defined zones; plants need water and fertilizer and grow over time.
- Growth speed zones with their own growth rate, map blip and optional restriction to certain plant types.
- Different plant types (three plant models) with their own colour, harvest amount, harvest time and chance to get the seed back.
- Processing tables that turn ingredients into drugs (for example coca plus fuel into cocaine), placed with your own prop and colour.
- Create your own drugs with a consume animation (blunt, sniff or pill), duration and effects.
- 14 effects: faster running, unlimited stamina, more strength, health regeneration, food regeneration, drunk walk, psycho walk, out of body, camera shake, fog, confusion, whiteout, intense and focus effect.
- Sell drugs to NPC dealers with a price per item.
- UI for plants, support for the ESX weight system, and all texts in the config.
- Plants and processing tables are saved in the database.
Requirements
- ESX
- mysql-async
Installation
- Copy
core_drugsinto yourresourcesfolder (the download contains the same resource in two folders; use one). - Import
core_drugs.sql; it creates theplantsandprocessingtables. - Add the seed, water, fertilizer, ingredient and drug items from
config.luato your items. - Add
ensure core_drugsto your server config.