Scripts Guides
Installation

📀INSTALLATIONS

Welcome to the Onex Creation installation guide! Here, you'll find everything you need to successfully install our asset. By carefully following each step, you'll ensure a smooth and seamless installation process. As long as you complete the entire documentation, you should encounter no issues along the way.

🚫

If you lack programming experience, we recommend reading each step thoroughly without skipping any lines, as every part of the documentation is crucial and should not be overlooked. If you have a trusted developer, they can help you complete the installation quickly, easily, and safely by following the documentation step by step.

If you still encounter any issues after completing this documentation, we recommend reviewing each step again carefully. Once you've confirmed everything is correct, you can find additional information on common errors in the Common Problems section within this documentation, allowing you to troubleshoot independently.

ASSET DOWNLOAD

⚠️

To find the asset, you must have made the purchase using your own keymaster account. Otherwise, you can use the transfer system to move the asset to a different keymaster account.

If you need to make an update you must also do this step again, download the asset and you will get the complete update.

Once you've completed your purchase on our official website (opens in a new tab), you'll receive your asset directly in your Keymaster panel. From there, you can download the asset and follow the provided documentation for installation.

For issues related to FiveM Escrow, accounts, or asset startup errors, please visit FiveM Assets Escrow Information page to see if any of the listed solutions address your problem. Keep in mind that Escrow requires basic information such as your Keymaster account and license key for proper operation.

To start, log in to your cfx.re Keymaster (opens in a new tab) account and go to the 'Granted Assets' (opens in a new tab) section to find and download the latest release of your purchased resource.

ASSET DEPENDENCIES

🚫

Caution : We strongly recommend NOT USING phpmyadmin. Use Heidisql (opens in a new tab) and the most stable version of MariaDB (opens in a new tab).

When downloading the script from cfx.re keymaster (opens in a new tab), you'll receive the latest onex-creation file. However, please note that the other dependencies used in this script may be outdated. You can ensure you're on the latest update by visiting the link to the dependencies below.

Dependencies :

REMOVE CONFLICTING SCRIPTS

Don't worry—removing any of the resources on this list won't cause any issues on your server. These resources need to be removed because onex-creation fully replaces their functionality. If you don't remove these scripts, they will conflict with onex-creation, leading to errors.

CONFLICTING RESOURCE LIST:

  • qb-clothing
  • illenium-appearance
  • fivem-appearance
  • skinchanger
  • esx_skin
  • esx_clotheshop
  • esx_barbershop

Please remove these resources or any similar ones (such as other clothing scripts) from your server.

ASSET POSITIONING

⚠️

Ensure that you position the assets correctly by following this step. Skipping this step may result in errors related to missing exports. It's crucial not to skip this step to avoid potential issues.

To execute this asset, please adhere to the specified order outlined below. We recommend initiating both dependencies and the onex-creation asset within the designated [onex] folder. Failing to do so may necessitate starting the dependencies first, followed by the onex-creation. After placing your asset into your servers resource directory, navigate to your server.cfg file and open it.

server.cfg
# First we will start the cores, never below
ensure es_extended or qb-core

# Put all the dependencies file into [onex] folder 
ensure [onex]

Alternatively, if you prefer to keep things separate, utilize the following format.

server.cfg
# First we will start the cores, never below
ensure es_extended or qb-core

# Place all dependency files within a designated resources folder. 
# When doing so, ensure that you maintain the following order:

ensure ox_lib
ensure PolyZone
ensure onex-base
ensure onex-interaction
ensure onex-creation

INSTALL SQL

If you're using this script as a standalone script then you do not need to follow this step.

⚠️

Executing the provided SQL queries below will drop your existing player_outfits table if you had an existing table in your database. Please make a backup of this SQL if you plan to manually migrate the data. We're not responsible for any data-loss from not following the directions listed above.

Execute the provided SQL queries within your database.

DROP TABLE IF EXISTS `player_outfits`;
 
CREATE TABLE IF NOT EXISTS `player_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(46) DEFAULT NULL,
  `outfitname` varchar(50) NOT NULL DEFAULT '0',
  `description` varchar(50) DEFAULT NULL,
  `skin` longtext DEFAULT '{}',
  `code` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `citizenid` (`identifier`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
💕

if you've followed the steps above properly, then you're good to start your server and enjoy your new character creation system! Thank you again for supporting Onex Scripts!