The problems that come up most often, what they mean and how to fix them. Turn on Config.Debug = true while you investigate: it prints what the script is doing to the F8 and server consoles.
Installation and Access#
The server closes as soon as the script starts
The folder was renamed. It must be called exactly qs-drugs-creator.
"Waiting for Framework to load..." never ends
No framework was found. Make sure es_extended, qb-core or qbx_core is running and is started before qs-drugs-creator in server.cfg.
/drugcreator does nothing, or says "No data returned from server"
You are not an admin for the script. On ESX your group must be admin or superadmin; on QBCore and Qbox you need the god or admin permission or the command ace. See Installation → Admin Access.
SQL errors when importing
On ESX, esx.sql inserts into addon_inventory and datastore. If those tables do not exist, remove the two INSERT lines at the end and import again. Make sure you imported the file for your framework: esx.sql changes users, qb.sql changes players.
All my labs, farms and dealers disappeared after an update
The SQL was imported again. It drops and recreates the tables. Restore your database from a backup, and do not import the SQL on updates.
Farms#
The zone does not turn green
It needs at least 4 points and a perimeter of at least Config.MinPointLength (50 m), and it cannot overlap another zone. Make it bigger, or lower the value.
"You must place exactly N props"
The number of props placed has to match the Maximum Collection Count. Place more, undo some with right click, or change the count in the form.
"Position taken" when placing props
Two props are closer than Config.CollectPropMinDistance (0.75 m). Space them out, or set the value to 0 for no limit.
Plants float in the air
Keep Config.CollectPropGroundSnap and Config.CollectPropSpawnSnap on true. The second also fixes props saved before it existed, without placing them again.
Players cannot harvest weed
Weed ships with requiredCops = true. Check requiredCopsQuantity in Config.CollectItems and that your police jobs are in Config.PoliceJobs. Also make sure the weed item exists in your inventory.
Laboratories#
The shell is invisible, or players fall through the floor
K4MB1-QuasarDrugs is not started. Add ensure K4MB1-QuasarDrugs before qs-drugs-creator. A custom shell in Config.Shells must also be streamed by a running resource.
MLO doors cannot be locked
Add setr game_enableDynamicDoorCreation "true" to server.cfg and keep Config.DynamicDoors = true. Then restart the server, not only the script.
The stash does not open
Your inventory was not detected, or you run two inventories at once. Set Config.Inventory by hand to your inventory's name (see Integrations). The default ESX inventory has no stash bridge; use a supported inventory. On qb-inventory, try the commented lines for older versions in client/custom/inventory/qb-inventory.lua.
The wardrobe does not open
Your clothing script was not detected. Set Config.Wardrobe to the name of a file in client/custom/wardrobe/, or adapt the closest file to your script.
"You need to be at least level X"
That step has a minimum lab level in Config.Process. Keep processing to earn experience, or set the level with /set_lab_level.
"This table is being used by someone else"
One player at a time per table. Wait, or place another table.
Pressing E at a table does nothing
The player is missing the ingredients for that step, or the items do not exist in the inventory with the exact names used in Config.Process. For the money line, the player needs black money: the black_money account on ESX, markedbills on QBCore, the black_money item on Qbox.
Decoration#
"Decoration is not available, someone using it"
Another player is decorating that lab. Only one decorator per lab at a time.
"You cannot place any more objects of this type"
The lab reached its limit of tables for that drug. Raise it in Config.Shells[n].limits.
My anticheat kicks players while decorating
Decoration uses a free camera. With FiveGuard, set Config.FiveGuard to your FiveGuard resource name. For other anticheats, whitelist freecam for qs-drugs-creator.
The furniture creator cannot upload a picture
Add Config.FiveManageToken = 'your-token' to config/main.lua and make sure screenshot-basic is running. You can also paste an image URL by hand.
Selling#
/selldrug says I have nothing to sell
Only items listed in Config.DrugsPrice can be sold on corners: by default the three packaged drugs. Raw weed must be packaged first. Selling is also refused inside a vehicle, or with fewer police than Config.RequiredCops.
Very few locals buy
Config.SuccessChance is the percentage of locals who walk past. Lower it for more buyers.
The police get no alert
No supported dispatch was detected. Set Config.Dispatch to qs-dispatch, qs-police-creator or qb-policejob, or adapt client/custom/dispatch/ to yours.
A dealer says it is unavailable
It is outside its working hours, which follow the in-game clock. Edit the dealer in /drugcreator and change its start and end hours.
Before Going Live#
Config.Debug = falseConfig.ZoneDebug = falseConfig.PoliceJobscontains only your police jobs.Every item exists in your inventory, with its picture.
K4MB1-QuasarDrugsstarts before qs-drugs-creator.
Still stuck? Open a ticket on our Discord with your framework and inventory, the error from the F8 or server console, and the steps that cause it.



