Skip to content

Configuration ​

shared/config.lua holds the core settings; every module keeps its own in shared/config/<name>.lua. Every file is commented. All of them are shared (client and server), so nothing secret goes in there: the md-stempeluhr key is a convar (Installation). Every number is a starting value; tune it for your server.

With np_admin running, the main tunables are also editable in game on its Resource settings page under Farming (see Editable in np_admin).

File What
shared/config.lua Framework, Inventory, Locale, Modules, Integrations, Stempeluhr, Jobs, staff without np_admin (AdminGroups, Admins, AdminDiscordRoles), AdminLog, StandaloneJobs, rate limits, Money, Quality, ImagePath, Keys, Distance, Actions.workSpeed, timers
config/crops.lua The 13 crops: stages and props, yield, seasons, soils, water and nutrient factors, rot window, harvest tool, rotation, level, seed and produce items
config/growth.lua Growth tick, water, nutrients, health, rain, the quality score, rotation, fertilizers, the watering can, water sources
config/harvest.lua The harvest step: seconds, the night rule, rotten produce, animations per tool type
config/plots.lua Fields, gardens, orchards, greenhouses: location, grid, soil, rent; the free planting zones
config/tools.lua Tool types and what satisfies them: items and GTA weapons, the in-hand bonus, wear
config/items.lua Tool and soil care items (modules add theirs from their own file)
config/levels.lua The XP curve, XP per action, perks
config/world.lua Seasons, weather sources, the own weather cycle, temperature, frost
config/hud.lua The field HUD: world labels, the plant card, the hotbar
config/processing.lua Station types, recipes and placed stations; the goods they make
config/market.lua Buyers, prices, demand, reputation
config/contracts.lua The contract board, NPC templates, player postings, the locker
config/animals.lua, bees.lua, threats.lua, coop.lua, tractors.lua The farm-life modules
config/phone.lua The Harvest app and its pushes (Config.Phone), what np_farming does with every sibling (Config.Compat), the farm supply store
shared/locales/en, de Every player-facing string of the Lua side
web/locales/en.lua, de.lua The NUI's own texts (ui.*), sent with init: edit them without rebuilding the UI

Core (shared/config.lua) ​

Option Default Description
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone' (auto: es_extended > qbx_core > qb-core)
Config.Inventory 'auto' 'np', 'ox', 'qb', 'esx', 'none' (auto: np_inventory > ox_inventory > qb-inventory)
Config.Locale 'en' 'en' or 'de'
Config.Debug / AutoCreateTables false / true Debug log; create the tables at start
Config.Modules all true plots, crops, harvest, processing, market, contracts, phone, animals, bees, threats, coop, tractors. false switches a module off: its RPCs, items and timers are not registered
Config.Integrations.<name> 'auto' Every optional sibling (Integrations); np_npchandler and np_prophandler are required and have no toggle: 'auto' = used when it runs, true = the same with a warning when missing, false = always the built-in fallback
Config.Stempeluhr { url = '', key = '', probe = true } Prefer the convars np_farming_stempeluhr_url / _key
Config.Jobs farmer, police, fire { group = { job = minGrade } }. See Installation → Jobs
Config.AdminGroups / Admins / AdminDiscordRoles { 'admin', 'superadmin', 'god' } / {} / {} Staff without np_admin. See Admin
Config.AdminLog plot_rented, theft, contract_posted, level_up Log entries that also go to np_admin's audit log (exact names, or Lua patterns starting with ^). Staff actions always go there
Config.StandaloneJobs {} Standalone only: [identifier] = { job, grade }
Config.RateLimit { perSecond = 8, burst = 16, maxPayload = 8192 } Token bucket per player for every RPC
Config.Money { account = 'cash', pay = { 'cash', 'bank' }, payoutDays = 30 } Sales and rewards go to account; rent and fees come from the first account of pay that covers them; offline payees are paid at their next login
Config.Quality.stars ★★★ from 75, ★★ from 45 The quality score (0..100) per star
Config.Quality.priceMult { 1.0, 1.5, 2.3 } Price factor by stars
Config.Quality.variants 'auto' 'auto': _q2 / _q3 items only on an inventory without metadata; true: always; false: ignore quality there
Config.ImagePath 'nui://np_inventory/web/images/' Item pictures in np_farming's screens
Config.Keys { interact = 'E', secondary = 'G', inspect = 'H', cancel = 'X' } Key mapping defaults; players rebind them
Config.Distance interact 2.5, player 3, plant 2, station 2.5, plot 40 Metres; the server re-checks every one
Config.Actions.workSpeed { min = 0.5, max = 2.0 } Bounds of the work speed (a tool in the hand speeds work up)
Config.TimerTick / SaveInterval 15 / 60 Seconds between timer checks; write-behind of XP, plots and plants

Crops (crops.lua) ​

One entry per crop. See Crops & growth for the list and how to add one.

Key Meaning
label, glyph, tint, order Name, Font Awesome glyph, Nimbus tile tint, sort order
kind 'crop' (one harvest, the slot is free again) or 'tree' (returns to regrowStage)
level Farmer level needed to plant it
growMinutes Seed to ripe with perfect care, on server time
stages, props Stage ids (the last one is ripe) and one vanilla model per stage
yield { min, max } per plant at full health; quality and season scale it
seasons Factor per season for growth and yield; 0 = only in a greenhouse that season
soils Plot kinds it can be planted on: field, garden, orchard, greenhouse
water, nutrients Drain factors (1 = Config.Growth defaults)
rotMinutes The ripe window; after it the plant starts to rot
harvest { tool = <tool type> | false, seconds, regrowMinutes?, prune? }
rotation Crops that rest the soil after this one (rotation bonus)
seed, produce { item, label, weight, price }; produce also shelfDays

Growth (growth.lua) ​

Option Default Description
tick / catchUpDays 60 / 7 Seconds between growth ticks; a server down longer only simulates the last N days
water start 60, drainPerHour 40, thirstyBelow 20, perWatering 45 Below thirstyBelow growth pauses
nutrients start 50, drainPerHour 12, lowBelow 15, lowMult 0.6 Low nutrients slow growth
health dryLossPerHour 15, hungryLossPerHour 5, diesAt 0 Neglect costs health; at 0 the plant is dead
rain.waterPerHour 120 Outdoor plants while it rains (greenhouses stay dry)
quality care 50, soil 20, season 15, fertilizer 15 What each part of the 0..100 score is worth at its best
rotation bonus 10, samePenalty 15 Soil points for a good follow-up crop / the same crop twice
rot.healthPerMinute 2 Once the ripe window is over
fertilizers fertilizer +60 nutrients +10 quality, compost +35 / +5 Items that feed the soil
can { item = 'watering_can', perUse = 25, start = 100 } One watering empties 25 % of the can
waterSources, refillRadius O'Neil water tower, Grapeseed pump; 3.0 Where a can is filled besides every plot's water point
seconds plant 4, water 3, fertilize 3, refill 5, clear 3 Timed steps

Harvest (harvest.lua) ​

Option Default Description
seconds / perUnitSeconds 6 / 0.3 Default length, plus per produce item
toolSpeed true A tool in the hand works faster
night { needsLight = true, fromHour = 21, toHour = 5 } At night outdoors the light tool type is needed
rotten { item = 'rotten_produce', perPlant = 1 } What a rotten plant gives when cleared
rottingYield 0.5 A rotting plant still gives this share (× its health)
anims per tool type, hand, tree, per item (shovel) Real GTA dicts and clips or scenarios

Plots (plots.lua) ​

Option Default Description
maxPerPlayer 3 Plots one player may rent
rentDays { min = 1, max = 14 } Rent per real day; extending caps at max
spacing / soilRecoverPerDay / rentWarnHours 1.2 / 4 / 24 Metres between slots; soil regained per day; the phone's rent warning
blips, waterProp on; prop_barrel_02a Map blips (own plots in another colour); the prop at each water point
freePlanting the Sandy Shores community garden Zones anyone may plant without renting; each plant belongs to its planter
list.<id> 8 plots label, kind, origin, heading, rows, cols, spacing?, soil, rent ($ per day), job?, level?, water, blocked? (slot numbers)

The grid runs along heading from origin (slot 1). The client snaps every slot to the ground, so origin.z only has to be near it.

Tools (tools.lua) ​

inHandBonus (0.2), itemWear (2), weaponWear (0), verifyHand (true), standaloneReport (true), command ('farmtools'), radial (true), types and weaponLabels. Explained with every default on Tools.

Items, levels, world, HUD ​

File Key options
items.lua np_inventory's item format (label, description, weight in grams, stack, category, icon) plus keys only np_farming reads: kind (seed, produce, good, tool, fertilizer, feed, animal, misc), tint, tool, durability, quality, shelfDays, existing, useable. Modules add items with Config.Items = Config.Items or {}
levels.lua max = 30, base = 100, growth = 1.15 (XP from L to L+1 = floor(base × growth^(L−1))); rewards per action (plant 2, water 1, harvest 5, process 3, sell 1, contract 25, animal 2, honey 4, pest 2, fire 10, …); perks ([3] rotation, [5] orchard, [8] greenhouse, [10] cellar, [15] tractor)
hud.lua labelDistance 12, labelMax 8, focusDistance 2, refreshMs 500, hotbar = true (only without np_hud's own), claim = 'bottom-center', propDistance 45

World (world.lua) ​

Option Default Description
seasons / seasonDays / anchor spring … winter / 7 / 2026-01-01 UTC Four seasons of a real week each, counted from anchor
weatherKeys / clockKeys npAdminWeather, npMenuWeather / npAdminClock, npMenuClock GlobalState keys read when no weather resource answers
clockMsPerMinute 2000 Without a clock: GTA's 2 s per game minute
cycleMinutes, weathers 30, weights per season np_farming's own weather cycle
rain, snow RAIN, THUNDER, CLEARING / snow types Weathers that water outdoor plants / count as snow
temperature, weatherDelta, swing 16 / 26 / 13 / 3 °C; per weather; 5 Season base, plus weather, plus day / night swing
frostBelow 2 Frost below this many °C

Weather sources, first that answers wins: a weather resource (Renewed-Weathersync, qb-weathersync, cd_easytime, vSync), np_admin's world tool, np_menu's, the GlobalState keys, then the own cycle. Seasons always come from the calendar.

Processing, market, contracts ​

Explained on Processing and Market & contracts.

Farm life ​

animals.lua, bees.lua, threats.lua, coop.lua, tractors.lua: explained on Farm life. Each has enabled; Config.Modules.<name> = false switches the whole module off.

Phone and compatibility (phone.lua) ​

Config.Phone is the Harvest app (Phone app). Config.Compat is what np_farming does with every sibling when it runs:

Key Default Description
inventory images = false, keepCategories = false, categories by kind np_inventory: rendered tiles instead of its glyph tile; the item categories (np_farming's farming is mapped by kind unless you add it to np_inventory)
crops.resources { np_drugs = true } Resources allowed to call RegisterCrop
prison { plots = {}, months = 1, cooldownSeconds = 300 } np_prison: public plot ids inside a prison → facility id; only inmates of it may work them and a harvest shortens the sentence. Empty = no prison farming
payments checkout = true, rentCheckout = false np_payments: seeds, animals and co-op fees at the checkout sheet; rent too with rentCheckout
banking { label = 'Farming', society = 'farmer' } np_banking: statement label and the farm job's society account
spawn { enabled = true, max = 3 } np_character: spawn at one of my rented plots
licence farming_license, nothing required np_identification: a licence to sell / rent
gangs theftAttention = 5, protectionPercent = 0, bandanaOnly = false np_gangs: turf heat per theft, protection share of sales
environmental fire = 'brush_fire', livestock = 'loose_livestock' np_environmental scene templates
vending.effects true np_vending keeps hunger / thirst of farm food
discord channel farming; theft, contractCompleted, plotRented, levelUp np_discord log channel and events
fuel jerrycan = 'jerrycan', canCapacity = 20, canFuel = 'petrol' np_fuel's jerry can as the fuel tool
minigames.harvest on, skillcheck, easy, bonus +5 to +20 % np_minigames skill check after a harvest by hand
supply npf_supply at Grapeseed, every seed + 18 items The farm supply store (np_shops, else the inventory's shops). seedMult scales seed prices; enabled = false = no store
screens { board = '', url = '', stars = 1 } np_screens: content id of the price board
fishing four bait items and four recipes np_fishing baits made at the stations

Editable in np_admin ​

With np_admin running, these keys are on its Resource settings page under Farming (shared/np_admin_settings.lua, one section per module, listed only for modules whose config exists). np_admin stores only the overrides; shared/config*.lua stays the default. Everything applies live except where it says restart. The settings are listed even while np_farming is stopped.

Category Keys
General Locale (restart), Debug, AdminLog, Money.account, Money.payoutDays
Quality Quality.priceMult.2, Quality.priceMult.3
Tools Tools.inHandBonus, itemWear, weaponWear, verifyHand, standaloneReport
World World.seasonDays, cycleMinutes, frostBelow
Levels Levels.max, base, growth
Plots Plots.maxPerPlayer, rentDays.max
Growth Growth.water.drainPerHour, water.thirstyBelow, nutrients.drainPerHour, health.dryLossPerHour
Harvest Harvest.perUnitSeconds, night.needsLight
Processing Processing.queueMax, trayMax, perPlayer, cancel.queued, cancel.running
Market Market.dynamic.dropPerUnit, dynamic.recoverPerHour, dynamic.floor, maxPerSale, reputation.perContract, reputation.lateContract
Contracts Contracts.maxActive, playerPosting.enabled, playerPosting.fee, board.max, board.refreshMinutes, late.graceHours, late.rewardMult
Animals Animals.enabled (restart), distance, warnBelow, truffles.minutes, truffles.cooldownMinutes
Bees Bees.enabled (restart), pollination.yieldBonus, pollination.radius, smoker.required, hive.max
Threats Threats.enabled (restart), crows / pests / frost / storm / fire / theft .enabled, theft.autoDispatch
Co-op Coop.maxMembers, createCost, splitSales (restart), shifts
Tractors Tractors.level, maxSpeed, fuel.perMetre
Phone Phone.rotWarnMinutes, pollSeconds (restart), maxPerPoll, repeatMinutes, every Phone.notify.<kind>
Compatibility Compat.minigames.harvest.enabled / .difficulty, Compat.gangs.protectionPercent / .bandanaOnly, Compat.licence.required.sell / .rent, Compat.payments.rentCheckout, Compat.supply.seedMult (restart), Compat.screens.board (restart)