Installation

Welcome to the Quasar Gang Wars installation guide, here you can learn how to completely install our asset, following each step we will achieve a clean and fluid installation where you will not find any problems, as long as the documentation has been completed in full.

If you do not have programming experience, we recommend that you read each step completely without skipping any lines, since all documentation is important and should not be ignored under any circumstances. If you have a trusted developer, you can install this quickly, easily and safely if you complete this documentation step by step.

If at the end of this documentation you still have any problems, review each step again, after having checked that everything is correct, you can obtain more information about common errors in the Common Problems section within this same documentation to seek help 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 the purchase is made on our official website, you will receive your asset directly in your Keymaster, in your own panel you can download the asset and install it following the following documentation.

If you have more problems regarding Fivem Escrow, accounts or asset startup errors you can go here and see if any of them match your case, since Escrow requires some basic things for its operation, such as your keymaster account, your licensekey , etc.

pageFiveM Asset Escrow System

Asset dependencies

Make sure to install all dependencies before running the asset, always check the meta_libs folder as it could have another file with the same name inside.

To use this asset you must have gamebuild version 2545 or higher. If you do not comply with this step, you may not have the interiors of the garages.

How to update the game build to version 2545?

This is a very simple step, we will directly access the artifacts for Windows or Linux, depending on our type of server. We will download it and replace it with the artifacts from our server.

Once this step was done, they added sv_enforceGameBuild 2545 in your server.cfg, make sure you don't have another convar with the same name or another version.

This asset has some dependencies that are completely mandatory and important for the operation of the asset. If you do not have these dependencies, your asset will probably start and have some error or message in its command console.

Asset positioning

Correctly position the assets by following this step, if something goes wrong you will probably get errors about exports not found, do not skip this step.

For the correct execution of the asset, we will put the asset and its dependencies inside a folder called [gangwars], then we will execute it completely using ensure as in the example.

The starting order is not very important in this asset, but just in case we will leave the basics so as not to receive general errors when using it. Always respect the framework and inventory above this asset.

-- First we will start the cores, never below
ensure es_extended or qb-core

-- The inventory should be executed above
ensure [inventory]

-- Run qs-gangwarshere along with its dependencies
ensure [gangwars]

Database

This asset has a very simple database, which we will install before starting the asset.

DROP TABLE IF EXISTS `gang_areas`;
CREATE TABLE `gang_areas` (
    `owner` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
    `area` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
    PRIMARY KEY (area) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;

Items

This system includes areas with drug collection, which will give us certain items. Here we will add the items to our inventory to be able to execute this function.

Items for qs-inventory
["flare_airdrop"] = {
    ["name"] = "flare_airdrop",
    ["label"] = "Flare Airdrop",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "flare_airdrop.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "With this I can call a plane to get weapons? Find out in the next episode!"
},

["cannabis"] = {
    ["name"] = "cannabis",
    ["label"] = "Cannabis",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "cannabis.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Hey brother, I think this is so natural..."
},

["cocaine"] = {
    ["name"] = "cocaine",
    ["label"] = "Cocaine",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "cocaine.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "The powder of love, who would have thought it would be so addictive?"
},

["meth"] = {
    ["name"] = "meth",
    ["label"] = "Meth",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "meth.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},
Items for qb-inventory
['flare_airdrop'] 			 	 = {['name'] = 'flare_airdrop', 			  	['label'] = 'Flare Airdrop', 			['weight'] = 200, 		['type'] = 'item', 		['image'] = 'flare_airdrop.png', 		['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'With this I can call a plane to get weapons? Find out in the next episode!'},
['cannabis'] 			 	     = {['name'] = 'cannabis', 			  	        ['label'] = 'Cannabis', 			    ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cannabis.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Hey brother, I think this is so natural...'},
['cocaine'] 			 	     = {['name'] = 'cocaine', 			  	        ['label'] = 'Cocaine', 			        ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine.png', 			    ['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'The powder of love, who would have thought it would be so addictive?'},
['meth'] 			 	         = {['name'] = 'meth', 			                ['label'] = 'Meth', 			        ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'meth.png', 			    ['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Oh shit brother, thats hard, very hard.'},
Items for esx_inventory
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
	('flare_airdrop', 'Airdrop Flare', 1),
	('cannabis', 'Weed', 1),
	('cocaine', 'Cocaine', 1),
	('meth', 'Meth', 1)
;

Basic asset configuration

We do not recommend editing frameworks unnecessarily, since almost all assets depend exclusively on your framework and exports on the name of your framework. Otherwise and if you edited your framework, read these steps carefully.

If you still require more open codes for the configuration, you can check within client/custom and server/custom to adapt the asset to your personal taste.

Please expand each part to see information about the configuration of the asset, this way you will understand the general operation of the asset on the framework and editable files side.

Basic framework configuration

The asset will work automatically if your framework is called es_extended or qb-core, it will automatically detect if any of them are started. In case your framework has been renamed, you can modify it in config.lua to edit the name of your framework.

Advanced framework configuration

If your framework is completely modified, both in events and name, you should access client/custom/framework or server/custom/framework to adapt the native events of your framework to the codes you have created. If this step doesn't work, we ask that you ask your framework modifier or trusted developer for help.

More general settings

This asset contains multiple configurations within the config folder. But you can also access more open source and configurations within client/custom or server/custom. We do not recommend using these configurations if you do not have the basics of programming.

Last updated