Installation

Guide to install the HighQez Headgear

Download Resource

Purchase the script from our HighQez Store. After the purchase, the resource will be available in your Keymaster Account

Make sure you purchase the script using the same Keymaster Account that is linked to your server. If not you will receive a warning "You lack the required entitlement".

If you receive the error mentioned above, you may have to transfer the resource from the current Keymaster account to the server's Keymaster account using the transfer feature in Keymaster.


Transfer Resource

Unzip the downloaded file and transfer it to your server's resource folder

If you are using FTP, please ensure you use WinSCP to transfer the resource to the server. If you use FileZilla, you may encounter the error "Failed to verify protected resource"


Start Resource

Ensure the resource in server.cfg of your server

Make sure to start the resource only after all essential server resources have been started. Follow the example below to ensure highqez_headgear

ensure es_extended/qb-core #Don't start above this if you are using ESX OR QB

#Start the HighQez resource here

ensure highqez_headgear

#Start the rest of your resources

Resource Items

Transfer the item's images from the INSTALL folder of the resource to your server's inventory

Ensure to add all required items to your server

ESX INVENTORY
INSERT INTO `items` (name, label, weight) VALUES
	('headgear','Headgear', 1)
;
OX INVENTORY
['headgear'] = {
    label = 'Headgear',
    weight = 1,
    stack = false,
    close = true,
},
OLD QBCore
["headgear"] = {
    ["name"] = "headgear",
    ["label"] = "Headgear",
    ["weight"] = 100,
    ["type"] = "item",
    ["image"] = "headgear.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Drivers with long hair are free to ride motorcycles and cars without any restrictions"
},
NEW QBCore
headgear = {
    name = "headgear",
    label = "Headgear",
    weight = 100,
    type = "item",
    image = "headgear.png",
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = "Drivers with long hair are free to ride motorcycles and cars without any restrictions"
},

Configure Resource

Customize the script to suit the specific requirements of your server

Open-source files are available for editing the framework function. The main configuration of the resource is provided below.

Config File
Config = {}

Config.item_name = 'headgear'  -- Use name of item or false to disable it

Config.command = 'headgear'  -- Use command or false to disable it

Config.Peds ={
    [`mp_f_freemode_01`] = {
        componentId = 2, -- 0: Face 1: Mask 2: Hair 3: Torso 4: Leg 5: Parachute / bag 6: Shoes 7: Accessory 8: Undershirt 9: Kevlar 10: Badge 11: Torso 2
        drawableId = 2, -- Item number in clothing menu
        textureId = 0 -- Texture number in clothing menu
    },
    [`mp_m_freemode_01`] = {
        componentId = 2, -- 0: Face 1: Mask 2: Hair 3: Torso 4: Leg 5: Parachute / bag 6: Shoes 7: Accessory 8: Undershirt 9: Kevlar 10: Badge 11: Torso 2
        drawableId = 2, -- Item number in clothing menu
        textureId = 0 -- Texture number in clothing menu
    }
}

Resource API

Check out the API page to access all APIs for this resource, which can be very useful for developers

API

Last updated

Was this helpful?