Script Description:
This script enhances animal interaction in your FiveM server by allowing players to skin various animals for loot. It includes AI improvements that make animals smarter and more reactive to player behavior, such as fleeing when scared or detecting sneaky players. The script requires a knife to skin animals and provides realistic loot for each animal type. All activities, including animal skinning and loot collection, are logged to a Discord webhook for easy tracking.
Features:
- Animal List: Includes deer, rabbit, coyote, cow, and pig for interaction.
- Skinning Mechanic: Requires a knife (
WEAPON_KNIFE) to skin animals. - Skinning Time: 10-second skinning process.
- AI Enhancements:
- Animals flee when scared.
- Sneak detection: Animals can detect sneaky players within 5 meters.
- Customizable AI behavior with the option to disable.
- Loot Table: Custom loot for each animal type, including meat and pelts.
- Discord Webhook: Logs animal skins and loot collection activities to a specified Discord channel.