This script provides advanced control over wild horse spawning, including breed-specific management, regional spawning, and automatic horse replacement systems.
Features
Horse Spawn Management
Control which horse breeds spawn in different regions of the map with district-based configuration.
Horse Blacklisting
Prevent specific horse models from spawning as wild horses to maintain server balance.
Horse Replacement
Automatically replace specific horse models with others when they spawn.
Framework Support
Compatible with VORP Core and RSG Core by default, with custom framework support available.
Debug Tools
Includes debugging commands to help troubleshoot spawning issues and monitor performance.
Performance Optimized
Efficient handling of horse spawning to minimize server impact and maintain smooth gameplay.
Installation
1
Download
Get the latest release from our Tebex Store and download it from your Keymaster
2
Extract
Extract the
spooni_wildHorseManager
folder to your server’s resources
directory3
Configure
Add
ensure spooni_wildHorseManager
to your server.cfg
4
Customize
Configure the
config.lua
file to your preferences (see Configuration section below)Configuration
The script is highly configurable through theconfig.lua
file. Here are the main configuration options:
Blacklisting Horses
Prevent specific horse models from spawning as wild horses:Replacing Horse Models
Automatically replace specific horse models with others when they spawn:Defining Horse Groups
Group horses by breed for easier management:Configuring Spawn Districts
Define which horse groups spawn in which regions:District names should match the actual region names in your RedM server. You can use the debug commands to help identify the correct district names.
Debugging
Enable debug mode in the config to access debugging features:Available Debug Commands
/npcSlots
/npcSlots
Shows information about ped slots that might be blocking horse spawns. This is useful for troubleshooting when horses aren’t spawning in expected locations.
/findHorse
/findHorse
Toggles display of scenario points for horse spawning. This visual debug tool helps you see where horses are configured to spawn and verify your district configurations.
Debug mode should only be enabled when troubleshooting. Disable it in production to maintain optimal performance.
Framework Integration
The script includes built-in support for multiple frameworks:Performance Considerations
The script is optimized for performance, but here are some tips to ensure smooth operation:
- Limit Horse Groups: Don’t create too many horse groups as this can impact spawn calculations
- Reasonable Blacklists: Keep blacklists focused on problematic horses rather than excluding large numbers
- District Optimization: Configure districts based on actual player activity areas
- Debug Mode: Remember to disable debug mode in production
Troubleshooting
Horses not spawning
Horses not spawning
- District name: Check if the district name matches exactly (case-sensitive)
- Horse models: Verify horse model names are correct
- Spawn points: Use
/findHorse
debug command to see spawn points - Blacklist: Check if horses are blacklisted
Performance issues
Performance issues
- Debug mode: Disable debug mode in production
- Horse groups: Reduce the number of horse groups
- Group size: Limit the number of horses per group
- Error logs: Check server console for error messages
Framework compatibility
Framework compatibility
- Framework detection: Ensure your framework is properly detected
- Custom setup: Check frameworkBridge.lua for custom framework setup
- Event verification: Verify framework events are working correctly