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 require screenshot-basic to work: https://github.com/citizenfx/screenshot-basic

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 screenshot-basic
ensure bit-clothingshop

SQL Query

Use the following sql query in your database:

ESX

CREATE TABLE IF NOT EXISTS `player_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(50) DEFAULT NULL,
  `outfitname` varchar(50) NOT NULL,
  `model` varchar(50) DEFAULT NULL,
  `skin` text DEFAULT NULL,
  `outfitId` varchar(50) NOT NULL,
  `active` int(2) DEFAULT 0,
  `props` LONGTEXT;
  PRIMARY KEY (`id`),
  KEY `identifier` (`identifier`),
  KEY `outfitId` (`outfitId`)
);

QB/QBOX

ALTER TABLE `player_outfits` ADD COLUMN
(
    `active` int(2) DEFAULT 0,
    `props` varchar(50) DEFAULT NULL,
) 

Restart

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

Last updated