πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

βš™οΈ Installation

Download

Before starting, you must log in to the CFX portal to download the asset. You will be able to download it as many times as you want on the official CFX page.

Steps

  1. Log in to the CFX Portal

  2. Finding your assets

    • Once logged in, navigate to the Granted Assets section to access your purchased assets
    • You can download them by clicking the "Download" button

Dependencies

This script has no dependencies.

Add Resources

Once you have downloaded the script, you must add it to your server's server.cfg file.

[!CAUTION]

  • This resource must always be started below your framework and inventory
  • Otherwise, functionality issues or critical errors may occur
# Default & Standalone Resources
# ------------------------------

ensure spawnmanager
ensure oxmysql
ensure bob74_ipl

# ESX Legacy Core
# ---------------

ensure [core]
ensure [inventory]
ensure battlepass

SQL Query

Use the following query in your database:

ESX

ALTER TABLE `users` ADD COLUMN
(
    `xp` int(20) NOT NULL DEFAULT 800,
    `xpreward` int(20) NOT NULL DEFAULT 0,
    `xpvipreward` int(20) NOT NULL DEFAULT 0,
    `vip` int(1) DEFAULT 0,
    `coins` int(50) DEFAULT 0
)

QB

ALTER TABLE `players` ADD COLUMN
(
    `xp` int(20) NOT NULL DEFAULT 0,
    `xpreward` int(20) NOT NULL DEFAULT 0,
    `xpvipreward` int(20) NOT NULL DEFAULT 0,
    `vip` int(1) DEFAULT 0,
    `coins` int(50) DEFAULT 0
)

Installation Steps

  1. Unzip the battlepass.pack.zip file and place this folder in your server's resource folder

  2. Add the resource to your server start config:

    ensure battlepass
    
  3. Pass the query stored in the .sql file into your database

  4. Restart your server

Restart

Once you have completed these steps, restart your server and the installation will be complete.

[!CAUTION]

  • The name of the script folder must not be changed, otherwise the resource will not work correctly
  • Do not edit the encrypted files in any way