βοΈ Installation
Follow these steps to install BIT-Coin System on your FiveM server.
Download
1. Login to CFX Portal
First, log in to the CFX Portal to access your purchased assets.
2. Download the Asset
Navigate to Granted Assets and click the Download button for BIT-Coin System.
Dependencies
This script has no dependencies and works standalone with your framework.
Add to server.cfg
Add the resource to your server.cfg file. Important: Start it after your framework and inventory.
# Default & Standalone Resources
# ------------------------------
ensure spawnmanager
ensure oxmysql
ensure bob74_ipl
# ESX Legacy Core
# ---------------
ensure [core]
ensure [inventory]
ensure bit-donatorsystem
SQL Queries
Execute the appropriate SQL queries for your framework:
ESX Framework
ALTER TABLE `users` ADD COLUMN
(
`coins` int(50) DEFAULT 0
)
QBCore Framework
ALTER TABLE `players` ADD COLUMN
(
`coins` int(50) DEFAULT 0
)
Both Frameworks
CREATE TABLE IF NOT EXISTS `coincodes` (
`creator` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`date` datetime DEFAULT current_timestamp(),
`code` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '',
`status` int(2) NOT NULL DEFAULT 0,
`user` varchar(50) COLLATE utf8mb4_bin DEFAULT '0',
`amount` int(11) NOT NULL
);
Restart Server
After completing the installation, restart your server. The script will now be active.
[!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.