Farm
Players plant crops by hand, raise animals you can see in the world, process goods at a mill, dairy bench and butcher block, and fill restaurant orders from Farm Orders boards. Business farms with their own jobs, or rental plots. Vanilla props and peds only.
#Requirements
- Required: qbx_core, ox_lib, ox_inventory, ox_target, oxmysql, GR1M_Placer (crop placement), GR1M_Bridge (business money when GR1M_UltraBoss is not running).
- Items: add
install/ox_inventory-items.luato ox_inventory and copyinstall/images/*toox_inventory/web/images/. - Where players get supplies: seeds, feed, pest spray and the watering can are sold at the farm terminal at the prices in
config.lua(MarketStock.prices). Nothing else is needed. - Optional, used when running:
- GR1M_Restaurants: restaurants post Farm Orders and pay farms from their balance. Without it, the boards stay empty and farms sell their goods however you like (any ox_inventory shop works).
- GR1M_UltraBoss: farm jobs and society accounts. Without it, jobs are created in qbx_core and money goes through GR1M_Bridge.
- GR1M_Skills: the Farming skill tree.
- GR1M_Bins: the terminal uses its City Supply Market for stock and prices instead of the config list.
- GR1M_PoPo or kartik-mdt: police alerts for crop theft.
Everything works without the optional scripts.
#Install
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure GR1M_Bridge
ensure GR1M_Placer
ensure GR1M_Farm
Admin access: add_ace group.admin gr1m.farm.admin allow. Tables are created on start. Restart the server once after adding the items.
#Setup
- Open
/farmadmin. - Farms and plots: make a business farm (this creates its job) or a rental plot. Draw its boundary, then place a terminal, plus any of: racks, pens, a livestock dealer, a mill, a dairy bench, a butcher block, a farm board.
- Restaurant boards (with GR1M_Restaurants): pick a restaurant and place its Farm Orders board.
- Every other tab holds the rules, with plain-English help. Changes save to the database and apply live.
#How it plays
- Crops: buy seeds at the terminal, pick a crop, and place it inside the boundary (one seed per plant, hold R for a row). Crops change model as they grow and keep growing while nobody is around. Walk up to water (needs a watering can), spray or harvest. Dry soil and pests lower the harvest, never below the Lowest harvest setting. A share of seeds comes back on harvest.
- Racks: indoor, faster, safe from theft, smaller harvests, power bill charged at planting.
- Animals: buy from the dealer. Hens lay eggs, cows give milk or are raised for meat, pigs are meat only. Unfed animals stop producing but don't die.
- Processing: the mill and dairy bench use goods from the farm stash. The butcher block turns a grown animal into meat, up to a daily limit.
- Orders: a restaurant manager posts an order at their board and the money is held from the restaurant balance. Farmers claim all or part, deliver to the board, and the farm gets paid. Unfilled amounts refund after the order lifetime.
- Theft: crops outside racks can be stolen on a server timer, with an optional police alert.
#Notes
- Animals are local peds placed from a shared time bucket, so nearby players see them in the same area.
- Rental plot stashes are per rental and opened by the server. Ending a rental clears the stash.
/farmadminalso has Rental plots, Orders (close and refund, drop claim) and an Activity log with an optional Discord webhook.
Support: https://discord.gg/m38m33G6jK
GR1M