Do It Digital Battlepass Script
Description:
This is a highly customizable and optimized resource that allows users to have a battlepass in which they can get rewards by playing in your server
It contains a civilian and a criminal battlepass (you can set unlimited levels) and you can choose which players can use it, or if you want to be enabled for all. Extra options to check if a player is criminal.
Very easy config
Check config example
Config.Command = 'battlepass' --Command to open the battlepass
Config.EnableLog = false --Send discord logs? Check server_functions.lua to enter your discod webhook
Config.EnableWhitelist = false --If true everyone can use battlepass, false if you want to be whitelisted
Config.IsEveryoneCriminal = false --If true everyone can use the criminal battlepass, false if you want specific players [Check server_functions.lua function IsPlayerCriminal(player)]
Config.ShowNotificationMaxXp = true --If true a notification will be shown if max xp is reached
Config.ImagePath = 'https://cfx-nui-'..GetCurrentResourceName()..'/html/images/items/' --Path of images of items [image must be .png]
Config.BattlepassAccess = { --Which type of admins can use the battlepass admin commands
['superadmin'] = true,
['admin'] = true
}
Config.CivilianXpPerMinute = 10 --How many civilian XP the player gets per minute
Config.MaxCivilianXpPerLevel = 1000 --Max civilian XP per level
Config.CivilianTimer = 60 --Interval in seconds to update the player's civilian XP
Config.CriminalXpPerMinute = 20 --How many criminal XP the player gets per minute
Config.MaxCriminalXpPerLevel = 1200 --Max criminal XP per level
Config.CriminalTimer = 60 --Interval in seconds to update the player's criminal XP
Config.Prices = {
['civilian'] = {
LevelPrice = 1000, --Price to buy a civilian level
resetPrice = 10000 --Price reset civilian battlepass
},
['criminal'] = {
LevelPrice = 1000, --Price to buy a criminal level
resetPrice = 10000 --Price reset criminal battlepass
},
}
--title: The title
--item: The spawnname of item (bread, water, etc...), weapon (WEAPON_PISTOL, WEAPON_CARBINERIFLE, etc...), money name (money, black_money etc...)
--amount: Amount of item to give, money to give, weapon bullets to give
--type: Available types: item, money, weapon
--desc: The description
Config.CivilianLevelRewards = {
{title = 'MONEY', item = 'money', amount = 500, type = 'money', desc = 'WIN 500$'},
{title = 'WATER', item = 'water', amount = 5, type = 'item', desc = 'WIN X5 WATER'},
{title = 'BREAD', item = 'bread', amount = 8, type = 'item', desc = 'WIN X8 BREAD'},
{title = 'COPPER', item = 'copper', amount = 2, type = 'item', desc = 'WIN X2 COPPER'},
{title = 'BANDAGE', item = 'bandage', amount = 1, type = 'item', desc = 'WIN X1 BANDAGE'},
{title = 'MONEY', item = 'money', amount = 500, type = 'money', desc = 'WIN 500$'},
{title = 'WATER', item = 'water', amount = 5, type = 'item', desc = 'WIN X5 WATER'},
{title = 'BREAD', item = 'bread', amount = 8, type = 'item', desc = 'WIN X8 BREAD'},
{title = 'COPPER', item = 'copper', amount = 2, type = 'item', desc = 'WIN X2 COPPER'},
{title = 'BANDAGE', item = 'bandage', amount = 1, type = 'item', desc = 'WIN X1 BANDAGE'},
}
Config.CriminalLevelRewards = {
{title = 'BLACK MONEY', item = 'black_money', amount = 1000, type = 'money', desc = 'WIN 1000 BLACK MONEY'},
{title = 'CANNABIS', item = 'cannabis', amount = 5, type = 'item', desc = 'WIN X5 CANNABIS'},
{title = 'MARIJUANA', item = 'marijuana', amount = 1, type = 'item', desc = 'WIN X5 MARIJUANA'},
{title = 'PISTOL', item = 'WEAPON_PISTOL', amount = 100, type = 'weapon', desc = 'WIN A PISTOL WITH 100 BULLETS'},
{title = 'CARBINE RIFLE', item = 'WEAPON_CARBINERIFLE', amount = 300, type = 'weapon', desc = 'WIN A CARBINE RIFLE WITH 300 BULLETS'},
{title = 'BLACK MONEY', item = 'black_money', amount = 1000, type = 'money', desc = 'WIN 1000 BLACK MONEY'},
{title = 'CANNABIS', item = 'cannabis', amount = 5, type = 'item', desc = 'WIN X5 CANNABIS'},
{title = 'MARIJUANA', item = 'marijuana', amount = 1, type = 'item', desc = 'WIN X5 MARIJUANA'},
{title = 'PISTOL', item = 'WEAPON_PISTOL', amount = 100, type = 'weapon', desc = 'WIN A PISTOL WITH 100 BULLETS'},
{title = 'CARBINE RIFLE', item = 'WEAPON_CARBINERIFLE', amount = 300, type = 'weapon', desc = 'WIN A CARBINE RIFLE WITH 300 BULLETS'},
Requirements:
- es_extended (1.1, 1.2, 1.6, 1.8)
- mysql_async or oxmysql that supports mysql asyncs functions
Commands
- battlepass_addplayer [target id] Add a player to the battlepass (if battlepass is whitelisted and you want specific players to have access)
- battlepass_removeplayer [target id] Wipes a specific user’s battlepass
- battlepass_wipe Wipes all the battlepass progress
It uses the official CFX escrow encryption that ensures buyer’s and seller’s protection. Remember that in order to run this protection system you must use the latest artifacts and a licensekey from your CFX account.
Video: https://www.youtube.com/watch?v=6vsdmSx25AE
You can buy it at our Store: https://tebex.doitdigital.shop/package/5384362
Check out our other packages:
Billboards:
- Life-Like Diamond Casino Billboard
- Realistic Life-Like Animated Legion Square Billboard
- Realistic Life-Like Animated Mall Billboard
- Realistic Life-Like Animated Square Mega Screen
- Life-Like Strawberry Avenue Billboard
- Realistic Life-Like Animated Maze Screen
- Realistic Life-Like Animated FIB Vertical Screen
- Realistic Life-Like Animated FIB Elgin Avenue Billboard - #4 by DoItDigital
- Realistic Life-Like Animated Legion Vertical Screen - #16 by EvgenyProduction
- Life-Like Arcadius Billboard
- Life-Like Gunshop Billboard 2EUR
- Road Circular Prop Billboard - #4 by Blue_Style_DEV
- Life-Like Triple Billboard
Maps:
- [MLO] Moms Pie
- [MLO] Pet Shop - #5 by Sashimie
- [MLO] Bonsai Roof Garden
- [MLO] Sprinkle Cake Pop
- HAPPY 2023 Animated Sign - #5 by NCDOJ
- Drug Hidden Cabin [MLO]
- 30 Hidden Drug Places, Weed,Coke,Meth [MLO]
Weapons:
- Best fivem weapons pack [50 weapons included]
- [weapon] [add-on] Grau 5.56
- [weapon] [add-on] FAMAS Underground
- [weapon] [add-on] Infantry AR
- [weapon] [add-on] M-133
- [weapon] [add-on] JRB-AK - #4 by DoItDigital
- [weapon] [add-on] A15-RC
- [weapon] [add-on] AK47-S
- [weapon] [add-on] NEVA Glowing In Night
- [Weapon] [Add-On] M16A3
- [weapon] [add-on] SB-4S
- [Weapon] [Add-On] FN-42
- [Weapon] [Add-On] GALIL-AR
- [Weapon] [Add-On] DRH
- [Weapon] [Add-On] FMR
- [Weapon] [Add-On] AKM-KH
- [Weapon] [Add-On] AK-4K
- [Weapon] [Add-On] M16A3
- [Weapon] [Add-On] CAS-R
- [Weapon] [Add-On] BULLDOG
- [Weapon] [Add-On] ARS
- [Weapon] [Add-On] SLR-15
- [Weapon] [Add-On] MZA
- [Weapon] [Add-On] HOWA
- [Weapon] [Add-On] FN502
- [Weapon] [Add-On] SAR
- [Weapon] [Add-On] SAFAK
- [Weapon] [Add-On] SFAK
- https://forum.cfx.re/t/weapon-add-on-awp/5028347
- https://forum.cfx.re/t/weapon-add-on-cfs/5028682
- https://forum.cfx.re/t/weapon-add-on-g36/5029210
- https://forum.cfx.re/t/weapon-add-on-aug/5029705
- https://forum.cfx.re/t/weapon-add-on-ak47/5031629
- https://forum.cfx.re/t/weapon-add-on-groza/5030401
- https://forum.cfx.re/t/weapon-add-on-groza/5029991
- https://forum.cfx.re/t/weapon-add-on-arma1/5031630
- https://forum.cfx.re/t/weapon-add-on-ditdg/5031631
- https://forum.cfx.re/t/weapon-add-on-g3-2/5031686
- https://forum.cfx.re/t/weapon-add-on-lr300/5034760
- https://forum.cfx.re/t/weapon-add-on-idw/5032395
- https://forum.cfx.re/t/weapon-add-on-ms32/5037134
- https://forum.cfx.re/t/weapon-add-on-ms32/5037134
- https://forum.cfx.re/t/weapon-add-on-m416p/5037790
- https://forum.cfx.re/t/weapon-add-on-h2smg/5041169
- https://forum.cfx.re/t/weapon-add-on-hfsmg/5039645
Scripts:
- https://forum.cfx.re/t/esx-qbcore-advanced-ui-report-system/4965919
- https://forum.cfx.re/t/esx-qbcore-vrp-175-dynamic-custom-crosshairs-for-fivem/4957205
- https://forum.cfx.re/t/esx-damage-indicator-shooting-assistance/4942644
- https://forum.cfx.re/t/esx-cool-ui-for-weapon-attachments/4942645
- https://forum.cfx.re/t/esx-performance-increaser-script-for-low-end-pcs/4942642
- https://forum.cfx.re/t/esx-qbcore-modern-radio-car-and-boombox/4946389
- https://forum.cfx.re/t/esx-modern-admin-menu/4945320
- https://forum.cfx.re/t/doitdigital-all-in-one-hud-system/4995392
- https://forum.cfx.re/t/esx-civilian-criminal-battlepass/4949947
- https://forum.cfx.re/t/oilrig-system-esx-qbcore/5019297
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | N/A |
Requirements | ESX & mysql_async |
Support | Yes |