A complete and immersive livestock system for RedM servers. Allows players to become true ranchers: buying, raising, caring for, and profiting from their own farm animals.
[SHOWCASE VIDEO]
Key Features
- Complete Lifecycle System: Animals are born as babies and grow physically over time (using PedScale) until they reach adulthood.
- Realistic Needs: Manage hunger, thirst, and health. Neglected animals can get sick or die.
- Dynamic Production: Animals produce resources (milk, wool, eggs) based on their gender, age, and health status.
- Breeding System: Realistic reproduction mechanics to grow your herd organically.
- Water Trough System: Placeable water troughs (p_watertrough01x) that players can refill with water buckets to keep their herd hydrated automatically.
- Job & Skills Bonuses: Whitelisted jobs (ranchers, farmers) can receive double resources from production and slaughtering.
- Ownership & Transfers: Secure ownership system with options to transfer animals to other players nearby.
- Interactive Shop: Purchase animals with a live preview camera system, variant selection, and gender choice.
- Slaughtering: obtain meat, skins, and other resources from adult animals.
- Permission System: Configurable actions for non-owners (allow friends to feed/water your animals).
- Modern UI: Clean and responsive interface using ox_lib.
- Multi-Language: Ready for translation (English/Spanish included).
Requirements
- Framework: Vorp Core
- Inventory: vorp_inventory
- Database: oxmysql
- Library: ox_lib
- Interaction: sleepless_interact
Installation
- Download & Extract: Place the ys_ganadery folder in your server's resources directory.
- Database: Import the provided SQL file into your database.
- Dependencies: Ensure all requirements are started before this script.
- Config: Customize the config.lua to set up shops, animal prices, growth rates, and rewards.
- Start: Add ensure ys_ganadery to your server.cfg.
Configuration
- Growth Modes: Choose between Time Based (real hours) or Interval Based growth.
- Custom Animals: Easily add new animals, variants, and resource drops in the config.
- Economy: Set prices, currencies (Cash/Gold), and production values.
- Locations: Add or remove animal shops with custom NPC and blips.
- Debug Mode: Built-in commands for testing and spawning.