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. Just as you download it the first time, you will also download it multiple times in the future to get updates.

1

Loggin in to the CFX Portal

First, log in to the official CFX portal by clicking here.

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 and dependencies (if necessary), you must add them to your server's server.cfg file. 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 bit-crypto

SQL Query

Use the following sql query in your database:

CREATE TABLE IF NOT EXISTS `bit_crypto_coins` (
  `coinname` varchar(50) DEFAULT NULL,
  `amount` double DEFAULT NULL
);

INSERT INTO `bit_crypto_coins` (`coinname`, `amount`) VALUES
	('Bitcoin', 1.0),
	('Ethereum', 1.0),
	('Ripple', 1.0);

CREATE TABLE IF NOT EXISTS `bit_crypto_useraccount` (
  `useridentifier` varchar(50) DEFAULT NULL,
  `avatar` int(50) DEFAULT NULL,
  `notifications` int(10) DEFAULT NULL
);

CREATE TABLE IF NOT EXISTS `bit_crypto_users` (
  `useridentifier` varchar(50) NOT NULL,
  `coinname` varchar(50) NOT NULL,
  `inverted` int(11) NOT NULL DEFAULT 0,
  `paid` int(100) NOT NULL
);

Restart

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

Last updated