# Farming Simulator

{% embed url="<https://www.youtube.com/watch?v=r-qV4J_ccns>" %}

#### 📖 Overview

**m-FarmingSimulator** is a comprehensive and immersive farming system for FiveM servers that brings realistic agriculture gameplay to your server. Build and manage your own farm, grow crops, raise animals, and create a thriving agricultural business. Perfect for roleplay servers looking to add depth to their economy and player activities.

#### ✨ Key Features

**🌱 Advanced Crop System**

* **Multiple Crop Types**: Tomatoes, corn, potatoes, wheat, lettuce, carrots, pumpkins, and strawberries
* **Realistic Growth Mechanics**: Dynamic growth times with health-based harvest requirements
* **Plant Care System**: Water and fertilize your crops to maintain optimal health
* **Decay System**: Plants require regular attention or they'll deteriorate
* **Customizable Yields**: Configurable harvest amounts and growth rates

**🐄 Animal Husbandry**

* **Various Animals**: Cows, pigs, chickens, and sheep with unique production cycles
* **Production System**: Collect milk, eggs, meat, and wool from well-maintained animals
* **Animal Needs**: Hunger, thirst, and health systems requiring daily care
* **Durability Mechanic**: Animals have limited production cycles before natural lifecycle ends
* **Realistic Decay**: Animals need regular feeding and watering to stay productive

**🏪 Market & Economy**

* **Dynamic Market System**: Buy and sell farm products with fluctuating prices
* **Offline Shop**: Set up automated sales even when you're not online
* **Contract System**: Complete farming contracts for additional income
* **Farm Shop**: Purchase seeds, animals, and farming supplies

**👥 Multiplayer & Management**

* **Co-op Farming**: Invite up to 3 co-owners to manage your farm together
* **Farm Ownership**: Buy, sell, or transfer farm properties
* **Statistics Tracking**: Monitor your farm's productivity and earnings
* **Permission System**: Control what co-owners can do on your farm

**🎨 Customization & Quality of Life**

* **Decorations System**: Beautify your farm with various decorative items
* **Placement System**: Intuitive 3D placement for crops and decorations
* **Multi-Framework Support**: Compatible with ESX and QBCore
* **Multiple Inventory Systems**: ox\_inventory, qb-inventory, and tgiann-inventory support
* **Target System Integration**: ox\_target and qb-target compatibility
* **Weather Integration**: Syncs with qb-weathersync and Renewed-Weathersync
* **Localization**: English and Portuguese translations included

**🛠️ Technical Features**

* **Optimized Performance**: Efficient resource usage for minimal server impact
* **Auto Database Setup**: Automatically creates required tables on first start
* **Extensive Configuration**: Every aspect customizable through [config.lua](https://vscode-file/vscode-app/c:/Users/marci/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/workbench.html)
* **Export Functions**: Integrate with other resources easily
* **Phone Integration**: Compatible with phone resources for contracts
* **Admin Commands**: Built-in tools for server management

***

**Optional Dependencies:**

* 🎯 **Target System** (one of):
  * [ox\_target](https://github.com/overextended/ox_target)
  * [qb-target](https://github.com/qbcore-framework/qb-target)
  * Custom implementation
* 📦 **Inventory System** (one of):
  * [ox\_inventory](https://github.com/overextended/ox_inventory)
  * [qb-inventory](https://github.com/qbcore-framework/qb-inventory)
  * [tgiann-inventory](https://tgiann.com/pt/package/6273000)
  * Custom implementation
* 🌤️ **Weather System** (optional):
  * [qb-weathersync](https://github.com/qbcore-framework/qb-weathersync)
  * [Renewed-Weathersync](https://github.com/Renewed-Scripts/Renewed-Weathersync)
  * [m-Weather](https://marcinhu.tebex.io/package/7162274)
  * Custom implementation


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mscripts.gitbook.io/docs/both-framework/scripts/farming-simulator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
