FiveM Guide

How to Set Up a QBCore Drug System on Your FiveM Server

August 2026 · 5 min read · Stellar AI

A drug system is one of the most popular scripts on any serious FiveM roleplay server. This guide covers how to get a weed growing, cocaine cooking and selling system set up on QBCore from scratch — no coding required.

What a drug system includes

A good QBCore drug system typically has several parts working together. Players can grow or find raw materials, process them into sellable drugs, and then sell to NPC dealers at hidden locations. Police can be alerted when dealing happens near them.

Common drug types on FiveM servers include weed (easiest), cocaine and methamphetamine. Each usually has its own growing or cooking process with timers and animations.

Step 1 — Get your drug system script

You can generate a complete custom drug system with Stellar AI in seconds. Just describe exactly what you want — which drugs, how the growing works, where dealers spawn, whether police get alerted — and it writes all the files.

💡 Try this prompt in Stellar AI:

"Make a QBCore drug system with weed growing at hidden outdoor spots, a 5 minute grow timer, harvesting animation, selling to a dealer NPC near Grove Street, and police getting a text alert when someone sells. Include fxmanifest, client.lua, server.lua and config.lua"

Step 2 — Upload to your server

Create a folder in your resources directory and upload your script files 👇

resources/ └── qb-drugs/ ├── fxmanifest.lua ├── client.lua ├── server.lua └── config.lua

Step 3 — Add items to QBCore shared

Drug systems usually need items registered in QBCore. Open qb-core/shared/items.lua and add entries for your drug items. Your generated script should include the exact lines to add.

['weed'] = {name='weed', label='Weed', weight=0.1, type='item', image='weed.png', unique=false, useable=true, shouldClose=true, combinable=nil, description='Some weed'},

Step 4 — Add to server.cfg and restart

ensure qb-core ensure qb-drugs

Restart your server and test by giving yourself the seed item using the owner console, then finding the grow spot on the map.

Common issues

Grow spots not showing on map

Check your config.lua — the coordinates for grow spots might be set to default values far from the map. Update them to locations on the GTA map.

Items not working

Make sure you added all items to qb-core shared items and restarted qb-core after editing that file.

Generate your drug system in seconds

Describe what you want and Stellar AI writes the complete script — weed, coke, dealers, police alerts — all 4 files ready to drop in.

Generate my drug system →