This script enhances the RedM experience by introducing an engaging cattle herding and selling system. Players can lasso and control cattle, guiding them to designated zones for sale. The script features a dynamic interaction where players must lasso a cow and press the configured key ('G') to make the cow follow them. The cattle will obediently follow the player, preventing them from fleeing and ensuring they stay within a set distance. However, cattle can wander off by chance or if they stray too far from the player. Upon reaching the designated buyer NPC, players can sell their cattle for in-game currency, adding an immersive and profitable activity to their gameplay.
Configurable Options
Key Bindings
Config.Key: The key used to make the lassoed cow follow the player. Default is 'G'.
Buyer NPC Settings
Config.buyerPed: The model for the buyer NPC.Config.cowBuyer: The coordinates and heading for the buyer NPC.Config.cowBuyCircle: The coordinates for the selling zone circle around the buyer NPC.Config.SellZoneRadius: The radius around the NPC where selling occurs.
Cattle Behavior
Config.MaxFollowDistance: The maximum distance cattle can follow the player.Config.WanderChance: The chance of cattle wandering off.Config.WaitDistance: The distance within which cattle wait for the player.Config.PlayerMovementThreshold: The movement threshold for the player to keep cattle following.
Economic Settings
Config.CowSalePrice: The price per cow sold.Config.CurrencyType: The type of currency used for transactions (e.g., money, gold).
Debugging
Config.debug: Toggle debugging messages on or off.
Herd Zones
Config.HerdZones: Configurable zones where herds of cattle appear, including coordinates, radius, and appearance chance.
Cattle Spawn Points
Config.CattleSpawn: Specific spawn points for cattle within each herd zone, including model types and spawn coordinates.
This highly customizable script offers an immersive cattle herding experience, allowing server owners to tailor the activity to fit their server's unique needs and dynamics.

