๐ฟInstallation
๐ฅ Installation Guide - FiveM BattlePass Script
1๏ธโฃ Download & Extract Files
Go to Keymaster and download:
๐ข 0bug-core
๐ต 0bug_Battlepass
Extract the downloaded files into your resources folder.
2๏ธโฃ Start the Resources in server.cfg
Open your server.cfg and ensure the resources start in the correct order:
โ Note: 0bug-core must be started before 0bug_Battlepass, but after your framework (qb-core, es_extended, or qbx_core).
3๏ธโฃ Configure 0bug-core
๐น Optional: Change DefaultAvatar to your server logo URL.
๐ Tebex Purchase Integration - BattlePass
To allow players to buy the Premium BattlePass or BattlePass credits, you need to configure Tebex to execute in-game commands when a purchase is made. Follow these steps:
๐น Step 1: Set Tebex Commands in the BattlePass Config
Navigate to:
๐ resources/0bug_Battlepass/Customize.lua
Ensure these two settings are properly configured:
These commands will be triggered when a player buys Premium BattlePass or Credits via Tebex.
๐น Step 2: Create Tebex Packages
You need to create two packages on your Tebex Webstore:
1๏ธโฃ Premium BattlePass Package 2๏ธโฃ BattlePass Credit Package (Example: Buy 50 Credits)
๐น Step 3: Configure Tebex Deliverables
For each package, follow these instructions:
1๏ธโฃ Setting Up the Premium BattlePass Package
Go to your Tebex Control Panel
Create a new package for the Premium BattlePass
Set a price (e.g.,
$10 for Premium BattlePass
)Go to the โPackage Settingsโ tab
Choose "Game Server Commands" as the Deliverable Type
Under "Game Command", add the following command:
The {transaction} parameter will automatically be replaced with the transaction ID


When a player purchases a slot:
They will receive an email with the transaction ID
They can enter that transaction id under the in-game menu
They will unlock the premium items on the Battlepass
2๏ธโฃ Setting Up the BattlePass Credit Package
Create a new package for BattlePass credits (e.g., โBuy 50 BattlePass Creditsโ).
Set a price (e.g.,
$5 for 50 Credits
).Go to the โPackage Settingsโ tab.
Choose "Game Server Commands" as the Deliverable Type.
Under "Game Command" add the following command:

โ This will give the player 50 credits after purchasing the package.
๐ก Replace 50
with the number of credits you want to give for that package.
Last updated