An immersive legendary animal hunting system for RedM featuring dynamic hunts, trust progression, and cross-resource integration with enterprise-grade security.
BCC Legendaries transforms the hunting experience by introducing a comprehensive system for tracking and hunting legendary animals. Each hunt is a unique adventure with challenging NPCs, strategic planning, and valuable rewards. The script features an advanced trust system with secure exports, professional database management, and enterprise-grade security features.
- Keyed Hunt System: Converted from array-based to keyed table format for O(1) lookup performance
- Memory Leak Prevention: Smart cleanup system prevents stale hunt data accumulation
- Non-blocking Timers: Replaced blocking threads with efficient timer-based cleanup
- Precision Calculations: Fixed floating-point issues in discount calculations
- Secure Trust Exports: Authorization-based access control for cross-resource integration
- Rate Limiting: Prevents abuse of trust system exports
- Input Validation: Comprehensive validation for all trust operations
- Audit Logging: Complete audit trail with Discord integration support
- Auto Schema Management: Database tables and migrations handled automatically
- Multi-DB Support: Compatible with MySQL and OxMySQL with fallback handling
- 63 Unique Hunts: Wide variety from Legendary Pronghorn to Legendary Golden Spirit Bear
- Unique Models: Each animal has distinct characteristics and behaviors
- Varied Locations: Hunts span across different regions and environments
- Dynamic Health: Balanced difficulty scaling for engaging combat
- Database Integration: Persistent trust levels stored securely
- Level Requirements: Hunts locked behind trust thresholds
- Automatic Tracking: Trust gained/lost through gameplay
- Cross-Resource Compatible: Secure export functions for other scripts
- Rate Limited: Protection against abuse with configurable limits
- Enemy NPCs: Hostile entities defending legendary animals
- Secondary Animals: Additional creatures spawned during hunts
- Hint System: Progressive clues guide players to targets
- Map Integration: Blips and waypoints for navigation
- Legendary Materials: Unique pelts, antlers, and rare items
- Crafting Components: Materials for advanced recipes
- Economic Integration: Valuable items for trading/selling
- Hunt-Specific Rewards: Each animal drops unique loot
- Cooldown Periods: Prevents hunt farming and adds planning
- Currency Costs: Economic investment required for hunts
- Trust Gates: Progressive unlocking of higher-tier hunts
- Risk vs Reward: Balanced challenge and reward scaling
- Auto Schema Management: Tables created and maintained automatically
- Migration Support: Version tracking for seamless updates
- Multi-DB Compatible: Works with MySQL and OxMySQL
- Admin Tools: Console commands for database management
- Visit a hunter shop or designated location
- Check your trust level with
/hunterLevel - Ensure you have sufficient currency for the hunt cost
- Select your target legendary animal from the menu
- Follow initial hint boxes and map blips
- Defeat enemy NPCs to unlock additional clues
- Use the progressive hint system to locate your quarry
- Navigate through dynamic spawn locations
- Confront the legendary animal in epic battles
- Deal with secondary animals and environmental challenges
- Utilize strategic approaches for enhanced health enemies
- Manage resources and ammunition effectively
- Skin the legendary animal using the built-in system
- Receive unique pelts, antlers, and rare materials
- Gain trust points for successful completions
- Use rewards for crafting, trading, or selling
| Command | Description |
|---|---|
/hunterLevel |
Check your current trust level and hunting progress |
| Command | Access | Description |
|---|---|---|
bcc-legendaries:init |
Console | Force database initialization and schema creation |
bcc-legendaries:verify |
Console | Verify database schema integrity and accessibility |
BCC Legendaries provides a comprehensive API for other resources to interact with the trust system:
| Function | Parameters | Returns | Description |
|---|---|---|---|
GetPlayerTrust |
identifier, charidentifier |
number |
Retrieve player's current trust level |
SetPlayerTrust |
identifier, charidentifier, trust |
boolean |
Set player's trust to specific value |
AddPlayerTrust |
identifier, charidentifier, trustToAdd |
boolean |
Add trust points to player's total |
RemovePlayerTrust |
identifier, charidentifier, trustToRemove |
boolean |
Remove trust points (minimum 0) |
Basic Trust Operations:
-- Get current trust level
local trust = exports['bcc-legendaries']:GetPlayerTrust(identifier, charidentifier)
-- Reward player with trust points
local success = exports['bcc-legendaries']:AddPlayerTrust(identifier, charidentifier, 15)
-- Check if player meets trust requirement
if trust >= 50 then
-- Allow access to premium content
end| Resource | Version | Required | Description |
|---|---|---|---|
| vorp_core | Latest | ✅ | Core framework for RedM |
| vorp_inventory | Latest | ✅ | Inventory system for item management |
| bcc-utils | Latest | ✅ | BCC utility functions and Discord integration |
| feather-menu | Latest | ✅ | Menu system for hunt selection interface |
-
Prerequisites
- Ensure all dependencies are installed and updated
-
File Installation
# Add to your resources folder resources/ └── bcc-legendaries/ -
Database Setup
- Database tables will auto-create on first run
-
Server Configuration
# Add to server.cfg or resources.cfg ensure bcc-legendaries -
Restart Server
- Restart your server to load the resource
- Check console for successful initialization
Run these console commands to verify database installation:
bcc-legendaries:verify- Check database connectivitybcc-legendaries:init- Force initialization if needed
- Legendary Models Only: Only use legendary animal models in hunt configurations to prevent duplication bugs
- Hunting Script Conflicts: Remove legendary animals from other hunting scripts to avoid conflicts
- Built-in Skinning: This script includes its own skinning system derived from vorp_hunting
- Item Currency System: Enhanced logic for item consumption and validation
- Keyed Hunt System: Performance-optimized hunt identification and tracking
- Trust System API: Full export support for cross-resource integration
- Auto Database Management: Automatic schema creation and migration support
- Enhanced Stability: Improved error handling and resource management
- Open Source: Feel free to modify and improve the code
- Community Sharing: Please share improvements with the community
- Pull Requests: Contributions and optimizations are welcomed
Special thanks to the VORP hunting system for skinning components that were adapted for this script.
GitHub: BryceCanyonCounty/bcc-legendaries
Enjoy the hunt! 🏹