FiveM Battlepass V2 – Level Up Your Server!
🚀 Introducing the FiveM Battlepass V2 – the ultimate system for rewarding your players and keeping them engaged. With support for ESX, QBcore, and ox_inventory, this flexible script is easy to customize and integrate into your server. Track your players’ progress, offer exciting missions, grant exclusive rewards, and much more!
Key Features:
- Framework Compatibility:
- Supports ESX, QBcore, and can be integrated with any framework of your choice.
- Fully compatible with ox_inventory.
- Requires oxmysql or mysql-async for database management.
- Season Management:
- Configure how long each Battlepass season lasts before resetting (e.g., 30 days).
- XP System:
- Earn XP by playing, with configurable settings for time needed and XP rewards.
- Premium Access:
- Players can earn premium access directly from the Battlepass menu, via admin command, or server export.
- Configurable options for making premium buyable, including setting a price.
- Buyable XP:
- Players can purchase XP to progress faster in the Battlepass.
- Configurable to control price and XP rewards.
- Battlepass Reset:
- Players can reset their Battlepass for a fee.
- Configurable to enable/disable and set the price for resets.
- Daily Missions:
- Add daily missions for extra XP rewards, configurable by time, reset schedule, and number of missions.
- Option to write your own missions for complete flexibility.
- Battlepass Levels:
- Add as many levels as you want, with configurable XP requirements.
- Assign specific rewards for each level, or leave it blank for custom rewards.
Commands:
- /battlepass_addpremium: Grants premium Battlepass access to a player.
- /battlepass_removepremium: Removes premium Battlepass access from a player.
- /battlepass_wipe: Wipes a player’s Battlepass progress, resetting their level and rewards.
- /battlepass_wipeall: Resets the Battlepass progress for all players.
Functions:
- CanBuyPremium(src): Check if a player can buy premium access.
- CanBuyXp(src): Check if a player can buy XP.
- CanResetBattlepass(src): Check if a player can reset their Battlepass.
- CanTakeReward(src, type, level): Check if a player is eligible to take a reward.
- GiveReward(src, type, level): Grant a reward to the player.
- HasAdminAccess(src): Check if a player has admin access.
Server Exports:
- AddXpToSource: Add XP to a player’s progress.
- AddMissionProgress: Update a player’s mission progress.
- GetPlayerMissions: Get the current missions of a player.
- AddPlayerPremium: Grant a player premium Battlepass status.
- RemovePlayerPremium: Remove premium Battlepass status from a player.
- HasPlayerPremium: Check if a player has premium Battlepass access.
Events to Handle Missions:
- Custom events are used to manage mission progression and player rewards.
Installation & Configuration:
For a detailed installation guide and to learn how to configure the Battlepass system, including commands, server functions, client functions, server exports, and events, please refer to the official installation documentation (CLICK HERE).