Skip to content

np_farming v1.0.0 ​

Farming built on the Nimbus UI design system. You rent a field, plant seeds, water them and harvest the crop. Then you process it at a station and sell it to buyers or deliver it on contracts.

  • Plants grow on server time. They keep growing, drying out and rotting while you are offline, and catch up after a restart.
  • Quality stars (★ to ★★★) come from care, soil, season and fertilizer. They follow the produce from the field through processing to the buyer, and they set the price.
  • Your tools can be inventory items or the GTA weapons you already carry. A step asks for a tool type. A sickle in your pockets works, and so does a machete in your loadout. Holding it makes the step faster. See Tools.

It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory, qb-inventory or the default ESX inventory. es_extended with np_inventory is the best-tested path. Hard dependencies are oxmysql, np_npchandler and np_prophandler (both 1.1.0+); OneSync must be on. Staff rights are np_admin permission nodes (no ACE). Every other np_* resource is optional and plugs in when it runs (Integrations).

Field HUD: world labels over the plants, prompts and the seed hotbar

Plant card Planting: seed pouch and placement grid
Plant card Planting
Tools: items and GTA weapons Processing station
Tools Station
Market: price per star, trend, reputation Contracts board
Market Contracts
Co-op: members, roles, shares Beehive
Co-op Hive
Animal pen Field HUD: thirsty plants
Pen Thirsty

The Harvest app in np_phone: a push, the Fields tab and the almanac

The screenshots come from the browser mock of the web UI. The UI ships in English and German; every screen also exists as a German shot (*.de.png).

At a glance ​

  • 13 crops and orchard trees: tomato, wheat, corn, carrot, potato, lettuce, pumpkin, strawberry, grapes and chili, plus apple, lime and walnut trees. Each growth stage has its own vanilla prop. See Crops & growth.
  • Plots on real farmland: Grapeseed, O'Neil's orchard, Paleto Bay, Sandy Shores, a hill field and a greenhouse in Great Chaparral, plus a free community garden. A slot grid with a placement ghost, soil quality, crop rotation and four seasons of a real week each.
  • Tools from a type list: cutting, chopping, bashing, digging, watering, plus light, fuel and extinguisher. Weapon in the hand, then weapon in the loadout, then an item. Item tools wear out. See Tools.
  • Processing at nine station types: wheat → flour → bread, grapes → juice → wine, milk → curd → aged cheese, scraps → compost → fertilizer. Batches queue and keep running while you are away. See Processing.
  • Market and contracts: buyers with opening hours, prices that drop with sales and recover, a 24 h trend, reputation, shelf life; NPC orders on a board, player orders, and business orders through PostContract. See Market & contracts.
  • Farm life: chickens, cows and pigs (eggs, milk, manure, truffles), beehives with pollination, crows, pests, frost, storms, field fires and crop thieves, co-ops with roles and a payout split, tractors that work a whole field. See Farm life.
  • The Harvest app in np_phone: fields, to-dos, weather, market prices, a crop almanac and your farmer level, with push notifications. See Phone app.
  • Farmer levels and XP unlock seeds, recipes and perks (orchards at 5, the cellar at 10, tractors at 15).
  • Server-authoritative: prices, counts, quality, durations and tool checks are the server's. Positions come from the server's own ped. Every RPC is rate-limited and schema-checked.

Who uses it ​

Resource What it does with np_farming
np_shops Hosts the farm supply store; player shops post contracts and receive the deliveries in their stock
np_phone The Harvest app, push banners, Maps pins for theft alarms
np_fishing Its baits are made at the farm stations while it runs
np_drugs Shares ingredients; may add crops through RegisterCrop
np_admin Permission nodes, the settings page Farming, staff tools, the audit log

All of them are optional. The full list, both ways, is on Integrations.

Quick example ​

lua
-- server: which tool would this player use for cutting right now?
local found, options = exports.np_farming:FindTool(src, 'cutting')
-- found = { source = 'hand', name = 'WEAPON_MACHETE', speedMult = 1.2, … } or nil, options = every way to satisfy it

-- server: a restaurant orders 30 tomatoes of at least ★★, delivered into its stash
local id = exports.np_farming:PostContract({ business = 'pizza_this', label = 'Pizza This', item = 'tomato',
  count = 30, minStars = 2, days = 3, reward = 600, stash = 'pizza_this_stock' })

-- server: a 10 % market fee on every sale at the Vespucci Deli, paid into a stash
-- (answer a preview exactly like the sale: the market screen uses it as a quote)
exports.np_farming:registerHook('beforeSale', function(p)
  if p.buyer == 'vespucci_deli' then
    return { payees = { { to = 'stash:deli_fees', percent = 10 } } }
  end
end, { resource = GetCurrentResourceName() })

Next steps ​