All products

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.

v1.0.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler 1.1.0+ · np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
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
Field HUD at dusk on Plot 3 in Grapeseed: world labels over wheat and thirsty corn, a ripe tomato with harvest, water and inspect prompts, the hotbar, the plant card with the knife in your loadout, and toasts for a three-star wheat harvest and two thirsty plants
Field HUD at dusk on Plot 3 in Grapeseed: world labels over wheat and thirsty corn, a ripe tomato with harvest, water and inspect prompts, the hotbar, the plant card with the knife in your loadout, and toasts for a three-star wheat harvest and two thirsty plants

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.

Planting: the seed pouch sorted by fit, the slot grid with a placement ghost, and the soil, season and crop rotation effects on the yield
  1. Rent: plots on real farmland, gardens, orchards and a greenhouse, each with a slot grid and its own soil.
  2. Plant: the seed pouch shows what fits this plot. Soil, season and crop rotation change the yield before you plant.
  3. Grow: on server time, also while you're offline. A thirsty plant stops growing instead of dying, rain waters it for free.
  4. 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.

Tools: a machete in hand, a hatchet and flashlight in the loadout, a watering can, trowel and pruning shears as items, and what each step needs
TypeItemsGTA weapons
CuttingSickle, pruning shearsKnife, machete, switchblade, dagger, broken bottle
ChoppingPruning sawHatchet, stone hatchet, battle axe
BashingRakeBat, golf club, wrench, hammer, crowbar, pool cue
DiggingGarden trowel, shovelNone
WateringWatering can (it empties)None
UtilityNoneFlashlight 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.

A shared grain mill: recipes, a flour batch, the queue that keeps running while you're away, the output tray and the production chains
  • 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.

Sandy Shores Produce: prices per star with a 24 h trend, a wheat glut and the reputation bonus
Contracts: your orders, the board and the form to post your own order
PartHow it works
BuyersOpening hours, their own goods, a price per star
DemandSales lower the price, it recovers over time, with a 24 h trend
ReputationSelling to a buyer earns a bonus on everything
Shelf lifeProduce 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 PostContract export. 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: the plot map with ripe, growing and thirsty slots and what needs youMarket: the best price for your bag, contracts and your co-opMe: farmer level, your harvest in numbers and the skills each level unlocks
  • 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.

Beehives: honey and colony, the next harvest, and the pollination radius
Co-op: members with roles, the shared farm and the harvest shares
  • 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.

FrameworkIdentityNotes
es_extendedxPlayer identifierThe ESX loadout counts for tools
qbx_corecitizenidWeapon items count for tools
qb-corecitizenidWeapon items count for tools
StandaloneLicense or np_character characterJobs from Config.StandaloneJobs
InventoryItemsQuality
np_inventoryRegistered at runtime, nothing to installMetadata, durability, tints
ox_inventoryPaste the generated item list and imagesMetadata
qb-inventoryPaste the generated item list and imagesMetadata
ESX inventoryImport the generated SQLOne 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.

SiblingWith itWithout it
np_inventoryItems at runtime with tints, durability and quality, weapon items, stashes and shopsox / qb / ESX bridge
np_hudToasts, progress bars, prompts and HUD zonesOwn NUI HUD
np_menuContext options on pens, hives, tractors and players, its weather for the seasonsWalk up and press E
np_phoneThe Harvest app, pushes, the badge and Maps pinsToasts and a waypoint
np_adminStaff nodes, live settings, the audit log, staff tools, the theme and its weatherOwn admins
np_characterCharacter ids, plots in the spawn picker, plots released on purgeFramework identifier
np_shopsThe farm supply store and business shops for deliveriesInventory shops
np_banking / np_paymentsStatements, the farm society and co-op accounts, checkout for plot rent, invoicesFramework money

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.

  1. Put the resource in resources/ as np_farming. The name is used for exports and NUI paths.
  2. Turn on OneSync. The hard dependencies are oxmysql, np_npchandler and np_prophandler, both 1.1.0 or newer.
  3. 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|esx writes them again.
  4. 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
  5. npfarming_status lists 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, beforeProcess and beforeSale, 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.

Install np_farming