[QB/ESX] kb - farming (Custom UI, Livestock, Feed & Gather, Hire Staff & Get Rich)

:farmer: BRIEF OVERVIEW

An immersive and feature-rich farming script for modern FiveM frameworks, allowing players to purchase, manage, and profit from their own agricultural enterprise.


:loud_sound: MAIN FEATURES

  • Dynamic Farm Ownership: Players can purchase and manage various unique farms, each with its own production chain.
  • Crop Cultivation: Plant seeds, water and fertilize crops for increased yield, and harvest raw produce.
  • Animal Husbandry: Purchase and raise livestock (cows, pigs, chickens), manage their feed, and collect animal products like milk, eggs, and truffles.
  • Butchering System: Process your livestock into valuable raw meat.
  • Production Chains: Turn raw materials into processed goods (e.g., wheat to flour) at a central processing location.
  • Logistics & Transport Missions:
    • Use farm-owned vehicles to transport newly purchased animals to your farm.
    • Run feed delivery missions using tractors and trailers.
  • In-Depth Management UI: A clean and modern interface for managing farm finances, purchasing vehicles, buying livestock and feed, and viewing farm statistics.
  • Employee System: Farm owners can hire, fire, promote, and demote other players to help run the farm.
  • Configurable Zones: Use PolyZone to define precise and realistic, non-square planting areas for each farm.
  • Framework & Target Agnostic: Designed to work with multiple frameworks (QBCore, ESX) and targeting systems (qb-target, ox_target).

:newspaper: Documentation: https://thedevkb-scripts.gitbook.io/
:movie_camera: Video Preview: https://www.youtube.com/watch?v=77uZtjhN-0Y
:money_with_wings: Purchase Here: https://thedevkb.tebex.io/package/kb-farming


:eyes: PREVIEW












:computer: CODE INFO

| Code is accessible | Config Only
| Subscription-based | No
| Lines (approximately) | 5000+
| Requirements | qb/ox-target | PolyZone
| Support | Yes


:money_with_wings: OTHER PRODUCTS

2 Likes

v1.1 is now live!
I’m rolling out a new update focused on major quality-of-life improvements, expanded player freedom, and enhanced server configuration.

Multi-Farm Ownership: Players are no longer restricted to a single property and can now own and manage multiple farms at once, with the UI correctly reflecting ownership status.
Full Localization Support: All in-game notifications and target prompts have been moved to a central Config.Locales table, allowing for easy translation to any language.
Streamlined Animal Tasks: The process for feeding and gathering from animals has been completely overhauled. Instead of running to a pen first, the target animal now spawns instantly at a random location on your farm when a task begins, with a map blip guiding you directly to it.
Dynamic & Personalized Map Blips: To reduce map clutter, blips for farm manager locations will now only appear for farms that you personally own, making navigation cleaner and more intuitive.
Improved Player Feedback: Added more specific notifications, such as a unique message when a player tries to plant a seed on the wrong type of farmland (“This soil is not suitable for this type of seed.”).
Bug Fixes & Stability: Addressed several key bugs, including an issue preventing animals from spawning randomly due to a Lua seeding error, and a vector mutation error during certain tasks - Also the Hire/Fire has been fixed as wasn’t correctly hiring people if in Uppercase.

If you have any feedback, issues, or feature requests, feel free to reach out. Thank you all for the continued support

1 Like

v1.2 - The Immersion & Logistics Update is now live!

This update brings deeper realism, improved interaction, and more rewarding mission flows to your farming operations. Every new feature is designed to enhance the feeling of being part of a living, working farm.

New Features:

  • Vehicle Pickup Missions: Buying a vehicle now starts its own mission. After purchasing from the dealership, you’ll head to the vehicle logistics port, speak with the clerk to get your keys and bay number, then personally drive your new vehicle back to your farm. It’s a satisfying, hands-on step that adds more depth to equipment acquisition.
  • Immersive Animal Collection: The animal purchase process is now fully interactive. After finalizing your order, you’ll drive to the livestock market’s loading bay. A live animal will spawn, and you’ll need to open your van’s rear doors and guide the animal inside before it can be transported.
  • Live Feed Loading: Feed pickups now happen in real time. Instead of just a progress bar, props representing the feed will spawn one by one in your trailer until it’s full. For larger loads, a final strap prop will appear to secure everything—giving you clear, satisfying visual feedback when the job is done.
  • Ambient Farm Animals: Animals now spawn at specific, customizable locations you define in the config, creating more natural-looking herds and flocks. Though their spawn points are static, their behaviour is more dynamic—they now roam freely within their pen area. For every 10 animals you own, one will appear when you’re nearby, combining predictable placement with natural movement to bring your farm to life without hurting performance.
  • Processing Overhaul: The processing interface has been cleaned up for easier use, especially for players managing multiple farms. It now shows the currently selected farm in a simple header, with a “Switch Farm” button to cycle through your properties—no more UI elements jumping around.
  • Dynamic Mission Blips: To cut down on map clutter, icons for mission-related vendors (like the Livestock Market, Butcher, Feed Supplier, and Vehicle Logistics) now stay hidden until you’re on a mission that needs them or you have the relevant menu open. The core “Processor” and “Seller” blips remain visible at all times for convenience.

v2.0.0 - The Specialization Update

New Features:
- Dynamic Crop Specialization: Farms are no longer tied to a single, pre-defined crop. Upon purchasing a farm, players are now presented with a UI where they can choose up to 3 crops to specialize in. This gives players true ownership and allows for unique farm identities across the server.
- Reworked Farm Supplies: To support the new specialization system, the “Farm Supplies” page in the management menu is now features a single, intelligent “Seed” card with a cycle button, allowing players to easily switch between and purchase any of their chosen seeds.
- Reworked Processing System: The “Farm Goods Processor” UI has been upgraded. It now also features a cycle button, giving players the ability to select which of their raw materials they want to process.
- Vehicle Spawn Limits & Storage: To improve server health and gameplay balance, a vehicle management system has been introduced. Farms are now limited to having 5 vehicles out at a time (configurable). Players can now return their spawned farm vehicles to the garage spawn point to free up a slot, creating a complete vehicle lifecycle.

Optimizations & Bug Fixes:
- Script Refactoring: The locale system has been completely separated from the main config file into its own locales.lua. This improves organization and makes future translations much simpler.
- Robust Data Handling: All UI components, especially the Processing and Selling menus, have been updated to use the new centralized master list, fixing numerous crashes and ensuring data consistency.
Mission & Logic Fixes:

  • Resolved a race condition where a “Vehicle Lost” notification would incorrectly appear after a successful animal delivery.
  • Solved an issue where the “Start Processing” button was unresponsive.

fw_bridge.lua - No longer encrypted to allow people to convert to there custom frameworks.

I’m running a 50% OFF sale on all my scripts from now until 1/10/25! :tada:

This is a great chance to grab anything you’ve been eyeing at half the price while I continue working on the upcoming laptop script.

Unfortunately, there have been some unexpected issues with my internet which have caused a delay in the release. Thanks for your patience and continued support!

Stay tuned for more updates — and don’t miss out on the sale!