Installation

⚠️

Before asking support in Discord, as many tickets are due to ignoring certain steps in this guide, read the Common Issues tab on the left menu. Your issue might already be there.

Install steps

Downloading Dependencies

Download the lc_utils dependency from this link: lc_utils.zip
Download the PolyZone dependency if you don't have it in your server: PolyZone GitHub

Extracting Files

Extract the contents of lc_farming_simulator and lc_utils from the zip files into your resources folder.

Configuring the Scripts

Configure the framework settings in the lc_utils/config.lua file.

Creating the Items

Copy the items below and paste them in your [qb]\qb-core\shared\items.lua. (There is a copy button in the top-right corner of the box below)

[qb]\qb-core\shared\items.lua
-- Farming Simulator β€” Fertilizers
fertilizer_tier1 = { name = 'fertilizer_tier1', label = 'Fertilizer Tier 1', weight = 2000, type = 'item', image = 'fertilizer.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A basic fertilizer that increases growth rate by 10%' },
fertilizer_tier2 = { name = 'fertilizer_tier2', label = 'Fertilizer Tier 2', weight = 2000, type = 'item', image = 'fertilizer.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'An advanced fertilizer that increases growth rate by 25%' },
cow_waste        = { name = 'cow_waste', label = 'Cow Waste', weight = 2000, type = 'item', image = 'cow_waste.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Natural cow waste that increases growth rate by 50%' },
 
-- Farming Simulator β€” Seeds
wheat_seed   = { name = 'wheat_seed',   label = 'Wheat Seed',   weight = 150, type = 'item', image = 'wheat_seed.png',   unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant wheat.' },
canola_seed  = { name = 'canola_seed',  label = 'Canola Seed',  weight = 80,  type = 'item', image = 'canola_seed.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant canola.' },
cotton_seed  = { name = 'cotton_seed',  label = 'Cotton Seed',  weight = 100, type = 'item', image = 'cotton_seed.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant cotton.' },
potato_seed  = { name = 'potato_seed',  label = 'Potato Seed',  weight = 250, type = 'item', image = 'potato_seed.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant potato.' },
oat_seed     = { name = 'oat_seed',     label = 'Oat Seed',     weight = 120, type = 'item', image = 'oat_seed.png',     unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant oat.' },
maize_seed   = { name = 'maize_seed',   label = 'Maize Seed',   weight = 130, type = 'item', image = 'maize_seed.png',   unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Seed used to plant maize.' },
 
-- Farming Simulator β€” Harvested Crops
wheat   = { name = 'wheat',   label = 'Wheat',   weight = 450, type = 'item', image = 'wheat.png',   unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested wheat.' },
canola  = { name = 'canola',  label = 'Canola',  weight = 350, type = 'item', image = 'canola.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested canola.' },
cotton  = { name = 'cotton',  label = 'Cotton',  weight = 300, type = 'item', image = 'cotton.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested cotton.' },
potato  = { name = 'potato',  label = 'Potato',  weight = 900, type = 'item', image = 'potato.png',  unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested potato.' },
oat     = { name = 'oat',     label = 'Oat',     weight = 400, type = 'item', image = 'oat.png',     unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested oat.' },
maize   = { name = 'maize',   label = 'Maize',   weight = 420, type = 'item', image = 'maize.png',   unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Harvested maize.' },
 
-- Farming Simulator β€” Animal Feed
cow_feed     = { name = 'cow_feed',     label = 'Cow Feed',     weight = 500, type = 'item', image = 'cow_feed.png',     unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Nutritious feed for cows.' },
chicken_feed = { name = 'chicken_feed', label = 'Chicken Feed', weight = 300, type = 'item', image = 'chicken_feed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Grain mix feed for chickens.' },
pig_feed     = { name = 'pig_feed',     label = 'Pig Feed',     weight = 400, type = 'item', image = 'pig_feed.png',     unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Balanced feed for pigs.' },
 
-- Farming Simulator β€” Animal Products
milk        = { name = 'milk',        label = 'Fresh Milk',  weight = 500, type = 'item', image = 'milk.png',        unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Fresh milk from a farm cow.' },
egg         = { name = 'egg',         label = 'Farm Egg',    weight = 100, type = 'item', image = 'egg.png',         unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A fresh farm egg.' },
raw_beef    = { name = 'raw_beef',    label = 'Raw Beef',    weight = 800, type = 'item', image = 'raw_beef.png',    unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Raw beef, ready for cooking or selling.' },
raw_chicken = { name = 'raw_chicken', label = 'Raw Chicken', weight = 400, type = 'item', image = 'raw_chicken.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Raw chicken meat.' },
raw_pork    = { name = 'raw_pork',    label = 'Raw Pork',    weight = 600, type = 'item', image = 'raw_pork.png',    unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Raw pork, ready for cooking or selling.' },

All item images are included in the script package. Copy the images from the nui/images/ folders into your inventory's image directory.

Starting Resources

Start both resources at the bottom of your server.cfg file:

server.cfg
# your other resources above
ensure PolyZone
ensure lc_utils
ensure lc_farming_simulator
ensure lc_farming_vehicles
⚠️

The loading order matters! Ensure that the scripts are placed at the bottom of your server.cfg, as specified above.

Done

Setup is complete. Join your server, locate the farming operations center (indicated by a blip on the map), and press E when near it to open the farming dashboard.

  • The script does not require manual SQL setup β€” all tables are created automatically on first start
  • All database tables use the farming_simulator_ prefix