Battlepass
Step by step installation guide for ESX and QB, common issues & solutions, troubleshooting guide, code snippets, changelog.
Last updated
Step by step installation guide for ESX and QB, common issues & solutions, troubleshooting guide, code snippets, changelog.
Last updated
1ΒΊ Import scripts.sql file in your DB.
2ΒΊ Add the xex_battlepass folder to your resources and initialize it in your server.cfg.
start xex_battlepass
Put it AFTER es_extended or qb-core imports
Config.ExtraDaysToEnd extra days to give some time to finish the battlepass, if a user has already claimed all his prizes he will not be able to claim more.
Config.PremiumCoin = use your custom currency for battlepass / vip payments.
Go to script.js and edit line 8 with your desired VIP price. Also, apply discounts based on months selected.
It is very important to select the correct type for each item: (Furniture, item, money, car).
Each day within Config.Schedule must have all the fields filled in. You can fill in the days you want.
A user can claim a prize every 24 hours, or two if he is a VIP. To obtain the VIP package you must use /premium or click on the button inside the battlepass. Discounts and promotions can be applied to the packages, as well as modify their price.
The battlepass starts one day and every 24 hours it goes to the next day, at which time anyone can claim their prize again and so on until the last day.