Documentation

qb_core

Download the Resource

Download the resource from the Cfx.re Portal after purchasing.

Extract and Place into Resources

Download the file, extract it, and place it in your server's resource folder.

Update Config

Make sure to include the resource in your server.cfg if you haven't already.
The resource should be started after your framework and ox_lib.

ensure qb-core
ensure ox_lib
ensure illenium-appearance

Note: The latest version of ox_lib is maintained by CommunityOx.
You can download it by clicking here.

Conflicting Resources

You must remove any other appearance editor from your server, as this one overrides them.
Below is a list of resources:

  • qb-clothing
  • fivem-appearance
  • qb-tattooshop

Install SQL to Database

sql.sql
CREATE TABLE IF NOT EXISTS `management_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `job_name` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `minrank` int(11) NOT NULL DEFAULT 0,
  `name` varchar(50) NOT NULL DEFAULT 'Cool Outfit',
  `gender` varchar(50) NOT NULL DEFAULT 'male',
  `model` varchar(50) DEFAULT NULL,
  `props` varchar(1000) DEFAULT NULL,
  `components` varchar(1500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `playerskins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(255) NOT NULL,
  `model` varchar(255) NOT NULL,
  `skin` text NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `citizenid` (`citizenid`),
  KEY `active` (`active`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS `player_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) DEFAULT NULL,
  `outfitname` varchar(50) NOT NULL DEFAULT '0',
  `model` varchar(50) DEFAULT NULL,
  `props` varchar(1000) DEFAULT NULL,
  `components` varchar(1500) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `citizenid_outfitname_model` (`citizenid`,`outfitname`,`model`),
  KEY `citizenid` (`citizenid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `player_outfit_codes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outfitid` int(11) NOT NULL,
  `code` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `FK_player_outfit_codes_player_outfits` (`outfitid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

Adjust your Resources

Remove the qb-clothing dependency from the fxmanifest.lua file in both the qb-houses and qb-apartments projects.

Steps

  1. Navigate to your projects:
    • Go to the project directory of qb-houses.
    • Locate the fxmanifest.lua file.
  2. Modify the fxmanifest.lua file:
    • Open the fxmanifest.lua file using a text editor.
    • Find the dependencies section.
    • Remove or comment out the line containing qb-clothing.
  3. Repeat for qb-apartments:
    • Navigate to the qb-apartments project directory.
    • Follow steps 2a to 2c.

Example

dependencies {
    'qb-core',
    'qb-vehicles',
-   'qb-clothing',
    'qb-interior'
}

Verification

  • Ensure the qb-clothing entry is removed from both projects' fxmanifest.lua.
  • Double-check functionality by running a test to ensure other components work without qb-clothing.

Configure the Resource

You can now configure the resource; all configs are in the shared folder.

Restart Server

Once you've completed all the steps above, you should be set.

On this page