βοΈ 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
-
Log in to the CFX Portal
- First, log in to the official CFX portal by clicking here
-
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
-
Unzip the
battlepass.pack.zipfile and place this folder in your server's resource folder -
Add the resource to your server start config:
ensure battlepass -
Pass the query stored in the
.sqlfile into your database -
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