np_farming
Rent a field, plant seeds, water them and harvest the crop. Process it at a mill, an oven or a press, then sell it to buyers or deliver it on contracts. Plants keep growing on server time while you're offline, quality stars follow the produce from the field to the buyer, and your tools can be inventory items or the GTA weapons you already carry.
- Version
- 1.0.0
- Frameworks
- ESX, qbx, qb, standalone
- Dependencies
- oxmysql, np_npchandler 1.1.0+, np_prophandler 1.1.0+, OneSync
- Database
- Tables created on start
- Inventory
- np_inventory, ox_inventory, qb-inventory, ESX inventory, or none
- Optional
- np_hud, np_phone, np_menu, np_admin, np_shops, np_banking and 20 more
- Languages
- English, German
- Build
- Node to build the NUI once

Taken from the NUI in the browser at 1920×1080, with mock data.
What's in it
The server sets prices, counts, quality, durations and tool checks. The client only draws them.
Plant, grow, harvest
- 13 crops and orchard trees, from tomato, wheat and corn to grapes, chili, apple, lime and walnut. Each growth stage has its own vanilla prop.
- Plots on real farmland in Grapeseed, O'Neil, Paleto Bay and Sandy Shores, and a greenhouse in Great Chaparral.
- Growth on server time: water and nutrients drain, rain waters every outdoor plant, a ripe plant rots if nobody harvests it.
- Quality stars (★–★★★) from care, soil, season and fertilizer. They carry through processing and set the price.
Items or GTA weapons
- A step asks for a tool type: cutting, chopping, bashing, digging or watering.
- A sickle in your pockets works, and so does a machete in your loadout. In hand, the step is 20 % faster.
- Item tools wear out with use, loadout weapons don't. The server checks every tool.
Processing chains
- Mill, oven, fruit press, barrel, stove, butter churn, cheese cellar, compost bin and dryer.
- Wheat → flour → bread, grapes → juice → wine, milk → curd → aged cheese, scraps → compost → fertilizer.
- Batches queue up and keep running while you're away. Co-ops share stations.
Market and contracts
- Buyers pay per star, with opening hours. Prices react to sales and recover, with a 24 h trend, reputation bonuses and shelf life.
- NPC orders on a rotating board, player postings, and businesses that post through an export and get the goods in their stash.
Farm life
- Chickens, cows and pigs for eggs, milk, manure and truffles. Beehives for honey, wax and a pollination bonus.
- Crows, pests, frost, storms, field fires and crop thieves, with police alerts and a farm camera.
- Co-ops with roles and payout shares, and tractors that plough, seed or harvest a whole field.
Works with your server
- ESX and np_inventory first, also qbx, qb or standalone, and ox_inventory, qb-inventory or the ESX inventory.
- The Harvest app in np_phone, and the other np_* siblings detected at start, each with a fallback.
- Staff permissions through np_admin, no ACE. Exports, hooks and events. English and German.
A closer look
Plant, water, harvest
Rent a plot, pick a seed and snap it to the grid. E plants or harvests, G waters, H inspects. All three can be rebound.

- Rent: plots on real farmland, gardens, orchards and a greenhouse, each with a slot grid and its own soil.
- Plant: the seed pouch shows what fits this plot. Soil, season and crop rotation change the yield before you plant.
- Grow: on server time, also while you're offline. A thirsty plant stops growing instead of dying, rain waters it for free.
- Harvest: with the right tool, before it rots. The stars come from how well you cared for it.
Tools are items or GTA weapons
A step asks for a tool type. Anything of that type counts, in your inventory or in your loadout. The server checks it, the client only shows the answer.

| Type | Items | GTA weapons |
|---|---|---|
| Cutting | Sickle, pruning shears | Knife, machete, switchblade, dagger, broken bottle |
| Chopping | Pruning saw | Hatchet, stone hatchet, battle axe |
| Bashing | Rake | Bat, golf club, wrench, hammer, crowbar, pool cue |
| Digging | Garden trowel, shovel | None |
| Watering | Watering can (it empties) | None |
| Utility | None | Flashlight for night harvests, jerry can for tractors, extinguisher for field fires |
Check order: the weapon in your hand (+20 % speed), then a weapon in your loadout, then an item with durability left. Items lose 2 durability per use, loadout weapons never wear. Addon weapons from a weapon pack work the same way once they're in a list.
From field to finished goods
Stations turn crops into goods. Quality carries through, so good crops make good goods.

- Chains: wheat → flour → bread, grapes → juice → wine, milk → curd → aged cheese, scraps → compost → fertilizer.
- Stations: mill, oven, fruit press, barrel, stove, butter churn, cheese cellar, compost bin and dryer.
- Batches queue up and keep running while you're away. Collect them from the output tray.
- Shared stations let a co-op use one mill. Recipes unlock with your farmer level.
- With np_fishing, its baits (sweet corn, bread paste, earthworms, boilies) are made at the farm stations.
A market that moves
Everyone selling wheat today drops the price. Mill it into flour, or hold it while it keeps.


| Part | How it works |
|---|---|
| Buyers | Opening hours, their own goods, a price per star |
| Demand | Sales lower the price, it recovers over time, with a 24 h trend |
| Reputation | Selling to a buyer earns a bonus on everything |
| Shelf life | Produce has a freshness date |
- Contracts board: rotating NPC orders with a quantity, minimum stars, a window and a reward.
- Player orders: the reward is held until delivery, plus a posting fee.
- Businesses post through the
PostContractexport. Deliveries go straight into their stash.
The Harvest app
With np_phone running, Harvest is a green tile on the home screen and /harvest opens it. Without it, alerts come as toasts with a GPS waypoint.



- Fields: a map of every plot with ripe, growing and thirsty slots, and a to-do list of what needs you.
- Market: the best price for what's in your bag, your contracts and your co-op's week.
- Almanac and me: what each crop needs, the weather, your farmer level and what it unlocks.
- Pushes: ripe, thirsty, about to rot, batch done, contract due and theft alarm, with a Maps pin to the thief.
Animals, bees, threats, co-ops and tractors
Each one is a module you can switch off in the config.


- Animals: chickens, cows and pigs. Fed, watered, happy animals make more: eggs, milk, manure, and truffles on a walk with a pig.
- Bees: smoke the hive, take honey and wax. Crops within 30 m get +10 % yield.
- Threats: crows, pests, frost, storms and field fires (call LSFD). Crop thieves trigger police alerts and the farm camera.
- Co-ops: shared plots and stations, roles (owner, grower, driver), a payout split and shift clocking.
- Tractors pull a plough, seeder or harvester. Drive the rows and the whole field is done. The server checks every position.
- Farmer levels and XP unlock seeds, recipes and perks.
Set it up
Compatibility
es_extended with np_inventory is the best-tested path. The framework and the inventory are detected at start.
| Framework | Identity | Notes |
|---|---|---|
| es_extended | xPlayer identifier | The ESX loadout counts for tools |
| qbx_core | citizenid | Weapon items count for tools |
| qb-core | citizenid | Weapon items count for tools |
| Standalone | License or np_character character | Jobs from Config.StandaloneJobs |
| Inventory | Items | Quality |
|---|---|---|
| np_inventory | Registered at runtime, nothing to install | Metadata, durability, tints |
| ox_inventory | Paste the generated item list and images | Metadata |
| qb-inventory | Paste the generated item list and images | Metadata |
| ESX inventory | Import the generated SQL | One item per star |
Staff rights come from np_admin's nodes (np_farming.admin, np_farming.items, np_farming.world), or from framework groups, Config.Admins and np_discord roles without np_admin. ACE permissions are never used.
Works with the np_* family
np_npchandler and np_prophandler 1.1.0 or newer are required. Every other sibling is detected at start and wrapped in one file, with a built-in fallback. One status line per resource, picked up again after a restart, each switchable off.
| Sibling | With it | Without it |
|---|---|---|
| np_inventory | Items at runtime with tints, durability and quality, weapon items, stashes and shops | ox / qb / ESX bridge |
| np_hud | Toasts, progress bars, prompts and HUD zones | Own NUI HUD |
| np_menu | Context options on pens, hives, tractors and players, its weather for the seasons | Walk up and press E |
| np_phone | The Harvest app, pushes, the badge and Maps pins | Toasts and a waypoint |
| np_admin | Staff nodes, live settings, the audit log, staff tools, the theme and its weather | Own admins |
| np_character | Character ids, plots in the spawn picker, plots released on purge | Framework identifier |
| np_shops | The farm supply store and business shops for deliveries | Inventory shops |
| np_banking / np_payments | Statements, the farm society and co-op accounts, checkout for plot rent, invoices | Framework money |
- np_environmental turns field fires and loose livestock into scenes. np_fuel fuels the tractors. np_vending keeps the hunger and thirst of farm food.
- np_gangs: thefts on turf raise police attention. np_drugs shares ingredients and can add crops. np_prison plots shorten a sentence.
- np_identification adds an optional farming licence. np_passwords puts code padlocks on plots.
- np_screens shows the live price board. np_mechanic and np_manufacturing keep a tractor's service book. np_net shows its network events.
- np_npchandler and np_prophandler, both required (1.1.0+), spawn every ped and prop: buyers, animals, crops and stations. The buyers' and stations' option is theirs, hidden while you are dead, cuffed or busy. np_discord adds Discord roles and a log channel. np_fishing baits come from the farm.
Also: np_minigames for a skill check after a harvest, md-stempeluhr for co-op shifts, and Renewed-Weathersync, qb-weathersync, cd_easytime or vSync for weather and the clock.
Installation
The tables are created on the first start. Build the NUI once with cd web && npm install && npm run build.
- Put the resource in
resources/asnp_farming. The name is used for exports and NUI paths. - Turn on OneSync. The hard dependencies are
oxmysql,np_npchandlerandnp_prophandler, both 1.1.0 or newer. - Items: np_inventory needs nothing. On ox_inventory or qb-inventory paste the generated item list and copy the images, on the ESX inventory import the SQL.
npfarming_install ox|qb|esxwrites them again. - Start it after its dependencies:
ensure oxmysql ensure es_extended # or qbx_core / qb-core ensure np_inventory # or ox_inventory / qb-inventory ensure np_admin # optional siblings before np_farming ensure np_hud ensure np_menu ensure np_phone ensure np_npchandler # required, 1.1.0+ ensure np_prophandler # required, 1.1.0+ ensure np_farming npfarming_statuslists the bridges, integrations, modules and the weather source. Rent a plot in Grapeseed and buy seeds at the farm supply store.
For your own scripts
Exports for crops, tools, plots, plants, stations, prices and contracts, hooks that veto or change a plant, a harvest, a batch or a sale, and server events for every step.
-- a gang takes 30 % of every sale on its turf
exports.np_farming:registerHook('beforeSale', function(p)
if IsOnTurf(p.coords) then
return { payees = { { to = 'stash:gang_vagos', percent = 30 } } }
end
end, { resource = GetCurrentResourceName() })
-- a restaurant orders 40 tomatoes, two stars or better
exports.np_farming:PostContract({ business = 'pizzathis', label = 'Pizza This',
item = 'tomato', count = 40, minStars = 2, days = 2, reward = 780, stash = 'pizzathis_stash' })
-- does the player carry something that cuts?
local found = exports.np_farming:FindTool(src, 'cutting')- Hooks:
beforePlant,beforeHarvest,beforeProcessandbeforeSale, with price quotes that never sell. - Events: planted, harvested, rotted, processed, sold, contract completed, plot rented, theft and level up.
- RegisterCrop lets a trusted resource add its own crop with generated items.
Questions
Which frameworks does it support?
es_extended first, then qbx_core and qb-core, detected at start. Standalone works too: players are known by their license or their np_character character, and jobs come from Config.StandaloneJobs.
Do I need np_inventory?
No, but it is the best-tested path: items are registered at runtime with quality, durability and tints. ox_inventory, qb-inventory and the default ESX inventory work with the generated item lists. Without metadata, each star is its own item.
Can players use the weapons they already have as tools?
Yes. A machete, knife or hatchet in the loadout counts for its tool type, and holding it makes the step 20 % faster. The server checks the weapon in the hand and the loadout itself; a pistol is never a tool. Loadout weapons don't wear out, item tools do.
Does it need np_phone?
No. The Harvest app needs np_phone. Without it, the alerts come as toasts with a GPS waypoint and everything else works the same.
Does it use ACE permissions?
No. Staff tools check np_admin nodes like np_farming.admin and np_farming.items. Without np_admin, framework admin groups, Config.Admins or np_discord roles count as staff.
Can I change the crops, the plots and the prices?
Yes. Crops, plots, stations, recipes, buyers, contracts, animals, tools and levels are plain Lua config files. With np_admin running, staff can change many settings live.
Is it in German?
English and German, for the Lua messages, the NUI and the Harvest app.
Works well with

Ensure it, rent a plot, plant.
Installation, every config file and every export are in the docs.