Installation

The script is delivered divided into qb and esx and in the qb version it is workable for qb and qbox and for esx it is workable for the esx framework This installation guide covers both ESX and QBCore/QBOX frameworks.


Install Dependencies

Resource
Source

ox_lib

Insert SQL

Run the insert-me.sql file in the script or the sql file copied directly from here and add it to your package

-- --------------------------------------------------------
-- Host:                         127.0.0.1
-- Server version:               10.4.32-MariaDB - mariadb.org binary distribution
-- Server OS:                    Win64
-- HeidiSQL Version:             12.8.0.6908
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

-- Dumping structure for table qbcoreframework_4a1c80.0r_multicharacterv2
CREATE TABLE IF NOT EXISTS `0r_multicharacterv2` (
  `identifier` varchar(255) NOT NULL,
  `settings` longtext DEFAULT '{}',
  `slots` int(11) DEFAULT 1,
  PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Data exporting was unselected.

-- Dumping structure for table qbcoreframework_4a1c80.0r_multicharacterv2-codes
CREATE TABLE IF NOT EXISTS `0r_multicharacterv2-codes` (
   `code` varchar(250) DEFAULT NULL,
   `slots` int(11) DEFAULT 1,
   `active` tinyint(1) DEFAULT 1,
   PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

-- Data exporting was unselected.

-- Dumping structure for table qbcoreframework_4a1c80.0r_multicharacterv2-transaction
CREATE TABLE IF NOT EXISTS `0r_multicharacterv2-transaction` (
  `transactionId` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

-- Data exporting was unselected.

/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;

Set Clothing Script

--  ██████╗██╗      ██████╗ ████████╗██╗  ██╗██╗███╗   ██╗ ██████╗ 
-- ██╔════╝██║     ██╔═══██╗╚══██╔══╝██║  ██║██║████╗  ██║██╔════╝ 
-- ██║     ██║     ██║   ██║   ██║   ███████║██║██╔██╗ ██║██║  ███╗
-- ██║     ██║     ██║   ██║   ██║   ██╔══██║██║██║╚██╗██║██║   ██║
-- ╚██████╗███████╗╚██████╔╝   ██║   ██║  ██║██║██║ ╚████║╚██████╔╝
--  ╚═════╝╚══════╝ ╚═════╝    ╚═╝   ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ 

--[[
    From here you should set the outfit script we support dealer outfit scripts;

    - illenium-appearance
    - bl_appearance
    - fivem-appearance
    - crm-appearance
    - qb-clothing
    - rcore_clothing
    - 0r-appearance - NEW
    - custom
]]

Config.Clothing = 'illenium-appearance'

For ESX

es_extended > shared > config > main.lua

Config.Multichar = GetResourceState("esx_multicharacter") ~= "missing"
Config.Identity = false

Replace

Config.Multichar = true
Config.Identity = true

Last updated