lation weed
Requirements, install steps, items and first start for lation weed, a FiveM weed growing script with custom strains, pot placement, plant care, private labs with workers and an in-game admin panel.
lation weed (lation_weed) lets players buy seeds and supplies, place pots on real soil, then water, fertilize and harvest plants that grow on the server in real time. Buds are rolled into joints or bagged at portable tables, players level up as they grow, and players can buy private labs with a shared stash, members and hired workers who grow and package on their own. There is no config file to edit: every gameplay setting lives in the database, is changed in game in the /weedadmin panel and applies the moment it saves.
Works on Qbox, QBCore, ESX and ox_core.
Requirements
| Resource | Needed | What for |
|---|---|---|
oxmysql | Required | Plants, labs, players and every setting |
ox_lib | Required | Callbacks and zones, and the default menus, notifications, progress bars and skill checks |
bob74_ipl | Required | The lab interior: every lab is the biker weed farm |
qbx_core, qb-core, es_extended or ox_core | Required | Players, jobs, money and usable items |
| An inventory | Required | ox_inventory, qb-inventory, qs-inventory, origen_inventory, codem-inventory, core_inventory, tgiann-inventory or jaksam_inventory |
ox_target, qb-target or interact | Required | Every prompt: plants, the shop, the dealer, farms, labs and tables. Picked in that order. lation interact works too: it stands in for ox_target, so lation weed finds it as ox_target. |
lation_ui | Optional | Notifications, menus, dialogs, progress bars and skill checks in the lation ui look, once you pick it for each under Setup > Integrations (they start on ox_lib). The placement controls use it on their own while it runs. |
Renewed-Weathersync, cd_easytime or qb-weathersync | Optional | Rain. Without one, plants never get their strain's rain bonus. |
lockpick and police_stormram items | For lab raids | The items civilians and police break into labs with. They are not in the install files. |
fmsdk | Optional | Logging to fivemanage |
oxmysql, ox_lib and bob74_ipl are dependencies in fxmanifest.lua: lation weed doesn't start without them. The framework, inventory and interaction system are detected when it starts.
Install
Follow the install guide, then:
Keep the folder name lation_weed. A renamed folder prints an error on start and again every 15 minutes.
Add the 36 items and their images to your inventory. Every file ships in install/, and the image names match the item names.
Paste the contents of install/items/ox_inventory.txt into ox_inventory/data/items.lua, then copy every file in install/images/ into ox_inventory/web/images/. This is the one to use on Qbox.
Paste the contents of install/items/qb-inventory.txt into qb-core/shared/items.lua, then copy every file in install/images/ into qb-inventory/html/images/.
Add the same item names in your inventory's own format, with the labels and weights in items below, and copy every file in install/images/ into its image folder. The plant pot, the weed table and the six joints are made usable through your framework, so nothing else is needed for them.
Check the lab interior. Every lab is the biker weed farm from bob74_ipl, and lation weed sets it up on every client: basic style and security, no production, chairs or drying details, and none of the interior's own plants. Another script that uses the same interior sees it that way too.
Ensure it after its dependencies, your framework, your inventory and your interaction system. If you run lation ui, it goes first, above ox_lib, because the lation ox_lib fork looks for it when ox_lib starts.
ensure lation_ui # optional
ensure oxmysql
ensure ox_lib
ensure bob74_ipl
ensure qbx_core # your framework
ensure ox_target # or lation_interact / qb-target / interact
ensure ox_inventory # your inventory
ensure lation_weedGive admins the admin panel. Add this to server.cfg:
add_ace group.admin lation_weed.admin allowTo check admins another way (framework groups, Discord roles), edit IsAdmin in server/utils/perms.lua, which ships open. See opening the panel.
Restart the server.
Lab raids use lockpick for civilians and police_stormram for police. Make sure both items exist on your server, or pick other items under Labs > Raids by players and Raids by police in the admin panel.
There is no SQL to import. On every start lation weed runs server/database/schema.sql, which creates its tables when they are missing, and writes the defaults from shared/defaults.lua for any section of settings that has none yet. Your own settings are never overwritten, and an option a newer version adds is filled in with its default.
| Table | Holds |
|---|---|
lation_weed_plants | Every living plant |
lation_weed_config | Every setting, one row per section |
lation_weed_labs | Who owns each lab, its lock, wallet and storage tier |
lation_weed_occupancy | Who is inside which lab, so they return there after a disconnect |
lation_weed_lab_members | Lab members and their permissions |
lation_weed_workers | Hired lab workers |
lation_weed_payouts | Lab wallets owed to owners who were offline when their lab was closed, paid when they next load in |
lation_weed_history | Harvests, joints rolled and bags packed, for the overview and lab dashboard charts, kept 60 days |
lation_weed_players | Each player's level, XP and lifetime stats |
lation_weed_tables | Placed portable tables |
Items
Twelve general items, and four for each of the six default strains.
| Item | Label | Weight | Usable |
|---|---|---|---|
ls_plant_pot | Plant Pot | 25 | Yes, starts placing a pot |
ls_watering_can | Watering Can | 150 | No |
ls_plant_revive | Plant Revive | 150 | No |
ls_basic_fertilizer | Basic Fertilizer | 150 | No |
ls_enhanced_fertilizer | Enhanced Fertilizer | 150 | No |
ls_premium_fertilizer | Premium Fertilizer | 150 | No |
ls_basic_soil | Basic Soil | 75 | No |
ls_enhanced_soil | Enhanced Soil | 75 | No |
ls_premium_soil | Premium Soil | 75 | No |
ls_rolling_paper | Rolling Paper | 1 | No |
ls_empty_baggy | Empty Baggy | 1 | No |
ls_weed_table | Weed Table | 1000 | Yes, places a table |
Each strain adds ls_<strain>_seed (weight 1), ls_<strain>_bud (5), ls_<strain>_bag (10) and ls_<strain>_joint (10), labeled after the strain, such as OG Kush Seed. The joint is usable. The default strains are og_kush, banana_kush, blue_dream, purple_haze, orange_crush and cosmic_kush; see strains.
The watering can, fertilizers and revive item stack by default. If you turn on item metadata for them later, set them to unique or non-stacking in your inventory first (see item metadata).
First start
On the first start the tables are created and every section is written from its defaults, so the server is playable straight away.
Join with an account that has lation_weed.admin and run /weedadmin to look over the settings. See the admin panel.
Go to the supply shop: the Smoke on the Water blip at Vespucci Beach. Buy a plant pot, a soil, a watering can and a fertilizer. The seed dealer turns up as soon as the resource has loaded its settings, at one of 18 spots, with a Seed Dealer blip.
Use the plant pot from your inventory to place it, then target it to add soil and plant a seed. See growing.
Commands
| Command | Who | What it does |
|---|---|---|
/weedadmin | lation_weed.admin | Opens the admin panel |
/weedstats | Everyone | Your level, XP to the next level, and lifetime counts of plants harvested, buds produced, joints rolled, weed bagged and farms searched |
/sellmylab | Lab owners | Sells your lab from outside it, after you confirm: the refund and the lab wallet are paid out and the stash is emptied. See selling a lab. |
Troubleshooting
The console says to rename the folder
The resource folder isn't named lation_weed. Rename it back and restart; the message repeats every 15 minutes until you do.
The F8 console says No supported interaction system was detected
None of ox_target, qb-target or interact was running when lation weed started. Ensure one of them before lation_weed, or pick yours under Setup > Integrations > Interaction system and restart.
A setting I changed didn't apply
Almost everything applies the moment it saves. Four options are read only when the resource starts and are marked Applies after a restart in the panel; run restart lation_weed after changing one. See settings that need a restart.
The admin panel says the configuration is still loading
At a server start the settings come out of the database a few seconds after the resource starts. Wait a moment and run /weedadmin again.
A pot won't go down where I put it
The spot has to be on allowed ground, clear of objects and within 5 m of you: the server refuses a spot farther away even though the preview can be pushed out to 7.5 m. It also has to be outside every blocked zone and, when Only plant in zones is on, inside one of the planting zones. See placing a pot.
The console says Could not empty stash
A lab was sold or closed, and its stash couldn't be emptied on your inventory. On one of the eight supported inventories, check that it is running; on your own inventory, add it to ClearStash in server/utils/stash.lua. See open files.
The console says Unable to fetch version information from API
The update check couldn't reach the version server. It changes nothing in game. Turn off Setup > General > Version check and restart to skip it.
Admin panel
Open /weedadmin: the overview, live plants, every setting, export and import.
Growing
Supplies, placing, care, harvest, rolling, bagging and levels.
Labs
Buying, members, the wallet, storage, workers, raids and selling.
Strains
The default strains, growth and yield, and adding your own.
Configuration
Every setting and its default.
Developers
Exports, events and hooks.
Still stuck? Ask in our Discord: the people who write the scripts answer.
Last updated