Admin Guide

The /weed command, the live settings editor, and admin test helpers.

Commands and permissions for oxide-weed.

The /weed Command

Everything is under one command: /weed <subcommand>. Typing /weed on its own shows a usage hint, and on servers running a chat resource that supports subcommand suggestions (such as oxide-chat) the autocomplete also lists every subcommand with its arguments. There is one player subcommand (/weed stats, no permission needed); everything else is admin-only.

Setting Up Permission

Admin subcommands check the standard FiveM command permission (framework admins on QBCore/QBX/ESX already have this). Give it to your admin group in server.cfg (or your permissions config):

add_ace group.admin command allow
add_principal identifier.license:abc123 group.admin

If your admins already run other restricted commands, they likely have this. Two things to know:

  • These commands must be run in game, except /weed setxp and /weed setlevel, which also run from the server console when you give a player id, and /weed unregister, which also runs from the server console.
  • If a subcommand does nothing, the player doesn't have the permission (they'll see a "no permission" notification) or something failed server-side — check the console.

Command List

CommandWhat it does
/weed statsOpens the Grower Profile: level, perks, records, strain mastery, goals and master ranks (any player, no permission needed)
/weed settingsOpens the live settings editor — change any setting in game, saved to the database
/weed kitGives you one of everything — seeds, supplies, equipment, manual, smoking items
/weed seedsGives 5 seeds each of 3 random base strains
/weed givebuds [amount] [item]Gives you product with test metadata
/weed growInstantly finishes the nearest plant
/weed waterFills the nearest plant's water and fertilizer to 100%
/weed tank [amount]Fills the nearest water tank, or sets its water to an amount
/weed dryInstantly dries everything on the nearest weed table
/weed fasttick [multiplier]Speeds up plant time server-wide for testing
/weed setxp <amount> [id]Sets a player's weed XP to an exact number, and their level with it (up or down)
/weed setlevel <level> [id]Puts a player at the start of a level
/weed unregister <strain>Takes a signature strain's name away
/weed infoShows server totals and your progression
/weed sellkitGives randomized sellable products for testing
/weed clearplantsRemoves every plant on the server
/weed clearlampsRemoves every grow lamp on the server
/weed clearequipmentRemoves every placed piece of equipment on the server

Command Details

/weed settings

Opens the in-game settings editor. Every setting the resource has — prices, timers, strains, store inventory, NPC locations, zones — can be changed here, and changes apply immediately without a restart. Saved values live in the database and survive restarts. See Configuration for how this works.

/weed kit

The fastest way to test. Gives 1 seed, pot, water, fertilizer, lamp, table, heater, scissors, watering can, water hose, tote, small water container, freeze dryer, manual, lighter, plus 5 baggies, 5 rolling papers, and 5 cigarillo wraps.

/weed seeds

Picks 3 random base strains and gives you 5 seeds of each, with full strain data attached.

/weed givebuds [amount] [item]

Gives test product. Without arguments: 20 weed_bud. The items come tagged as "Generic Kush", Mid quality.

/weed givebuds
/weed givebuds 10 dried_weed_bud
/weed givebuds 5 weed_1g

/weed grow

Finds the nearest plant within 10 meters and jumps it to fully grown, ready to harvest.

/weed water

Finds the nearest plant within 10 meters and sets both water and fertilizer to 100%.

/weed tank [amount]

Finds the nearest water tank within 10 meters and fills it, so you can test the water hose without buying water. Give an amount to set the level instead, for example /weed tank 20 to try spraying a nearly empty tank. The amount is capped at the tank's capacity.

/weed dry

Finds the nearest weed table within 10 meters and instantly finishes any buds drying on it. (Does not affect drying racks or freeze dryers.)

/weed fasttick [multiplier]

Speeds up all plant time on the server — growth and water/fertilizer drain — so you can test the full loop without waiting hours.

  • /weed fasttick with no number toggles 12x speed on and off
  • /weed fasttick 50 runs plants 50x faster
  • /weed fasttick 1 restores normal speed

This affects the whole server, so use it on a test server or quiet hours, and remember to set it back to 1. It resets to normal on restart.

/weed setxp <amount> [id]

Sets a player's weed XP to the exact number given, and their level to whatever that XP reaches. Leave out the id to change your own. The level can go down as well as up, and the change takes effect at once: the player's next XP, their Grower Profile and every level gate use the new numbers.

/weed setxp 5000      you, at level 8 (brick press)
/weed setxp 15000     you, at level 10 and master rank 1
/weed setxp 0 12      player 12 back to level 1

If the level goes up, the player sees the level-up banner for it, and if the XP reaches a new master rank, the rank-up banner. Lowering the XP below a rank keeps the player's picks, but a pick above their rank gives nothing until they reach it again.

/weed setlevel <level> [id]

Puts a player at the start of a level: their XP becomes the XP that level needs. The level must be one on the level curve in /weed settings (Progression). /weed setlevel 9 is the quickest way to try the level 9 perks and Durban Poison. Master ranks aren't levels, so use /weed setxp to try them.

Both commands also run from the server console, as long as you give a player id.

/weed unregister <strain>

Takes a signature strain's name away, for a name that should never have got through. Give the strain's registered name (any capitalisation, spaces included) or its strain id (the strain_id on the item's metadata).

/weed unregister Swamp Gator

The strain goes back to the name crossbreeding gave it, with no owner and no reputation, and you're told both names. The player who held it can register another strain in its place. What's harvested from the strain from then on carries its crossbred name again. Items already made keep the name they carry: buds, bags, bricks and seeds. Plants already in the ground show the removed name until they're harvested. Seeds made while it was registered are planted and cloned under the crossbred name. There is no undo; the player would have to register the strain again.

Also runs from the server console.

/weed info

Shows total plants, lamps, and equipment on the server, plus your own level, XP, and lifetime created count.

/weed sellkit

Gives 5 random stacks of sellable product (weed_1g through weed_brick) with random strains, qualities, and generations — handy for testing oxide-drugselling.

/weed clearplants, /weed clearlamps, /weed clearequipment

Wipe all plants, lamps, or placed equipment server-wide, including from the database. There is no undo — players are not refunded the items.

Daily and Weekly Goals

Players find their goals in the Goals tab of /weed stats. Everything about them is under Grower Goals in the Progression category of /weed settings: the pool of goals, how many are drawn, the reset hour and day, the swaps a day and the level scaling. See Configuration for every field.

  • Reset times use the server's clock, not the players'. If your server runs in another time zone from your players, set Reset hour to suit them.
  • Pool, count and scaling edits apply to goals drawn after them; a player's current goals keep their targets and XP until they reset. Moving the reset to an earlier time can start a new day or week at once; moving it to a later time keeps the current goals until the day or week after, so nobody is given the same day twice.
  • Goals are saved per character in the weed_grower_goals table, so they survive restarts and relogs.
  • To stop goals without losing them, turn off Enabled: nothing counts and the tab hides until you turn it back on.

Master Ranks

Players find their ranks and make their perk picks in the Ranks tab of /weed stats. Everything about ranks is under Master Ranks in the Progression category of /weed settings: the XP per rank, how many ranks there are, the perk pool, the titles, the reset price and how much ranks scale goals. See Configuration for every field.

  • A player's rank comes from their XP, so /weed setxp moves it too. Nothing else about a rank is stored.
  • Picks are saved per character in the weed_grower_ranks table. Players clear their own at the scientist (Reset Master Perks, $25,000 dirty money by default).
  • Removing a perk from the pool turns it off for everyone who picked it, and they can pick another for that rank. Changing a perk's Id counts as removing it.
  • To stop ranks without losing picks, turn off Enabled: the Ranks tab hides and rank perks stop working until you turn it back on.

Signature Strains

Players register signature strains at the scientist. Everything about them is under Signature Strains in the Progression category of /weed settings: who can register, the price, how many each player can hold, the name rules and blocked words, and how reputation builds. See Configuration for every field.

  • The price bonus needs one line in oxide-drugselling. Reputation only raises street prices after you add oxide-weed's price row to oxide-drugselling's weed pricing and restart the server. The exact line and where it goes are in Configuration.
  • Keep the blocklist up to date. Add any word your community shouldn't see on a strain name to Blocked words. It applies to names registered after the save; names already registered stay until you remove them.
  • Allow innocent words. Add exact single words to Allowed words to avoid embedded false positives. Only that word is exempt; other words and longer words containing it still face the blocklist.
  • Take a name away with /weed unregister <strain> (see above).
  • Turning off Enabled stops new registrations, reputation and the price bonus. Names already registered stay.
  • Registrations and reputation are saved on each strain's row in the drug_strains table.

Police Alerts

Under Dispatch (in the Core category of /weed settings, on the Advanced tab) you can make growing carry a risk of being reported to police.

Set Alert chance above 0 and every time a player starts a stage the server rolls for a dispatch call at that plant's or table's location. Each of the four stages — plant, harvest, dry, brick press — can carry its own chance; leave one at -1 and it follows the master chance. Wild plant harvesting never alerts.

Two settings stop it becoming noise:

  • Site cooldown (default 5 minutes) — the same plant or table can't raise a second alert until it expires. Other sites are unaffected.
  • Per-stage chance — turn the quiet stages down or off. Setting Plant to 0 is a common choice, so only an established grow gets reported.

Everything is decided on the server from the site's stored position, so a player can't suppress the alert or make it point somewhere else.

Changes apply live. See Configuration for the full field list and what you need installed.

Next Steps