Troubleshooting
Common issues and solutions for oxide-weed.
Startup Issues
Resource fails to start
Symptoms: Server console shows errors on startup, resource does not appear in resource list.
Solutions:
-
Check dependency order in server.cfg
ensure ox_lib ensure oxmysql ensure community_bridge ensure oxide-weedAll three dependencies must start before oxide-weed.
-
Verify database connection — Make sure oxmysql is connected and
sql/install.sqlhas been imported. -
Verify community_bridge is working — Check that community_bridge detects your framework. Look for its startup messages in the console.
Items not usable
Symptoms: Using a cannabis seed, grow lamp, or other items does nothing. No error in console.
Solutions:
-
Verify items are registered in your framework — All items listed in Installation > Item Registration must exist.
-
Check that items are marked as useable — QBCore:
useable = truein the item definition. ESX/ox_inventory: Items are registered viacommunity_bridgeautomatically. -
Check for bridge errors — Look for
RegisterUsableItemerrors in the console from community_bridge.
Planting Issues
Seed does nothing when used
Solutions:
-
Check you have a plant pot — Seeds require a
plant_potitem in your inventory. -
Check strain level requirement — If the seed's strain requires a higher level than you have, planting is blocked.
-
Verify the seed has valid metadata — Seeds without metadata default to the Generic strain.
Plant not appearing after placement
Solutions:
-
Check routing bucket — Plants only appear to players in the same routing bucket.
-
Check
Config.SpawnDistance— If set too low, plants may not render. Default is100.0units. -
Check for server errors — Look for database insert failures in the console.
Growth Issues
Plants not growing
Solutions:
-
Wait for the update interval — Plants update every
Config.PlantSettings.updateInterval(default 60 seconds). -
Check growth stage durations — The final stage is intentionally long (~83 hours). Use grow lamps to accelerate.
-
Use admin commands to test:
/weed_fasttick -- Set tick to 5 seconds /weed_grow -- Instant grow to final stage
Plants dying
Solutions:
-
Check water and fertilizer levels — If either reaches 0, the plant is removed. Water decays at 0.2/min, fertilizer at 0.1/min by default.
-
Water and fertilize regularly — Water adds 25 per use (direct) or 20 per watering can use. Fertilizer adds 35 per use.
-
Increase resilience via genetics — Higher resilience trait reduces decay rates by up to 50%.
Quality always low
Solutions:
-
Maintain water and fertilizer above 50% — Care factor accounts for 30% of quality.
-
Use grow lamps — Having at least one lamp linked to a plant adds 10% to the care factor.
-
Use better strains — Genetics account for 70% of quality. Generic (quality 50) caps lower than Amnesia Haze (quality 88).
Drying and Processing Issues
Buds not drying
Solutions:
-
Wait for drying time — Default is 30 minutes without heaters. With 3 heaters, approximately 10 minutes.
-
Check the drying tick interval — Updates every
Config.Drying.updateInterval(default 30 seconds). -
Use admin command:
/weed_dry
"Not your buds" error
Solutions:
-
Check ownership setting —
Config.RequireOwnership = truemeans only the player who placed the buds can interact. Set tofalsefor shared access. -
Use the same character — Ownership is tracked by character ID.
Trimming produces no buds
Solutions:
-
Verify you have dried buds — Trimming requires
dried_weed_bud, notweed_bud(fresh). -
Verify you have trimming scissors — Both items must be in your inventory.
-
Check inventory space — Pruning produces 2-5 pruned buds. Your inventory must have space.
Selling Issues
Cannot sell to NPCs
Solutions:
-
Check progression level — NPC selling requires level 2 by default (
Config.Selling.requiredLevel). -
Check police requirement — If
Config.Selling.minPoliceOnlineis set above 0, that many police players must be online. -
Check NPC blacklist — Cops, EMS, military, and security NPCs are blacklisted. Try a regular civilian ped.
-
Check if selling is enabled — Verify
Config.Selling.enabled = true.
NPC always rejects
Solutions:
-
Lower your price — Above 125% of fair value, the NPC always rejects.
-
Check rejection chance — 15% flat rejection chance by default. This is random.
-
Check cooldowns — 5-second player cooldown and 2-minute per-NPC cooldown.
Getting robbed frequently
Solutions:
-
Avoid gang NPCs — NPC models in
Config.Selling.gangModelscan trigger robberies. -
Adjust robbery chance — Lower
Config.Selling.risks.robberyChance(default 0.15).
Store and Scientist Issues
Store NPC not appearing
Solutions:
-
Verify store is enabled —
Config.Store.enabled = true -
Check coordinates — Default:
vec3(-1275.97, -1139.92, 6.79). Verify accessibility. -
Check blip setting —
Config.Store.blip.enabled = truefor the map blip.
Scientist not offering services
Solutions:
-
Check level requirements — Lab Report: level 2, Cloning: level 4.
-
Verify you have seeds — Both services require a
cannabis_seedin inventory. -
Verify you have funds — These use dirty money (configured via
Config.DirtyMoney), not regular cash.
Freeze Dryer Issues
Cannot place freeze dryer
Solutions:
-
Check progression level — Requires level 7 (
Config.Equipment.freeze_dryer.requiredLevel). -
Use admin command:
/weed_setxp 3200
Wild Plant Issues
No wild plants spawning
Solutions:
-
Check if enabled —
Config.WildPlants.enabled = true -
Check zone definitions — Zones must have at least 3 points and
plantscount > 0. -
Check spawn distance — Wild plants render within
Config.WildPlants.spawnDistance(default 100 units). -
Check debug output — Enable
Config.Debug = trueand look for[oxide-weed] Wild zonemessages.
Smoking Issues
Cannot roll joints or blunts
Rolling requires: rolling papers/cigarillo wraps + weed_1g + lighter. All three must be in inventory. Only one roll can be in progress at a time.
Smoking has no effects
A 60-second cooldown applies between smoking sessions. Dirt-grade weed has minimal effects (40% floor). Higher quality strains produce noticeably stronger effects.
General Debugging
Enable Debug Mode
Config.Debug = true -- in shared/config.lua
Outputs detailed information to the server console prefixed with [oxide-weed].
Useful Admin Commands
| Command | Purpose |
|---|---|
/weed_info | Show server-wide object counts and your progression |
/weed_fasttick | Speed up plant ticks to 5 seconds for testing |
/weed_kit | Get all growing supplies |
/weed_seeds | Get seeds of random strains |
/weed_setxp 3200 | Set XP to unlock freeze dryer (level 7) |
/weedstats | View your progression stats |
Database Checks
SELECT COUNT(*) FROM drug_plants;
SELECT COUNT(*) FROM drug_equipment;
SELECT COUNT(*) FROM drug_lamps;
SELECT COUNT(*) FROM drug_heaters;
SELECT COUNT(*) FROM drug_drying_slots;
SELECT COUNT(*) FROM drug_strains;
SELECT * FROM drugs_progression WHERE drug = 'weed';
Getting Help
If none of the above solutions resolve your issue:
- Enable debug mode (
Config.Debug = true) and reproduce the problem - Check your server console for error messages with the
[oxide-weed]prefix - Verify your database tables exist and have the correct schema
- Confirm all items are registered in your framework
- Contact Oxide Studios support with:
- Your server console output
- Your framework name and version
- Steps to reproduce the issue
- Your config changes (if any)