πŸ“¦Installation

How to install and setup

Requirements

Step 1 - Place resource in [qb] folder

Place the folder qb-pos inside your folder with all the other qb scripts. This is most likely called [qb]

Step 2 - Add Items

Add the following items to your qb-core items.lua file:

-- Boosting Items
boostlaptop                  = { name = 'boostlaptop', label = 'Laptop', weight = 100, type = 'item', image = 'pixellaptop.png', unique = true, useable = true, shouldClose = true, description = 'A laptop' },
hacking_device               = { name = 'hacking_device', label = 'Hacking Device', weight = 100, type = 'item', image = 'disabler.png', unique = true, useable = true, shouldClose = true, description = 'A device' },
boostfile                    = { name = 'boostfile', label = 'File', weight = 100, type = 'item', image = 'file.png', unique = true, useable = true, shouldClose = true, description = 'A nail file' },

Step 3 - Images

Open up the images folder and add the images to your inventory addon. For most people this will be called qb-inventory.

Drag and drop the images into the html/images folder.

Step 4 - Adding Vehicles

The vehicles used for the boosting system are configured by you. Each tier has a different set of vehicles, this means that you need to configure this in your qb-core vehicles.lua. This is so you have more control over what vehicles players will be boosting.

An example of a default vehicle is shown below

Here is the modified vehicle, at the end you can see we added the tier part

Then, add the bottom of your vehicles.lua file you should see something like this:

Change to:

The line tier = Vehicles[i].tier, must be added.

Step 5 - Database

Execute the following code in your database

Step 6 - dpemotes Setup

You need to make a slight modification to the dpemotes resource to make the player animations work correctly.

In the resource, open up the file Client/Emote.lua , and look for the function called EmoteCommandStart

Right below the function, after the end , add in the following:

It should now look like the following:

Next, you need to open up the fxmanifest.lua file for dpemotes. At the bottom of the file, add in the following line:

Step 7 - Configuration

The configuration file is setup with some locations already. Feel free to add more and tweak the rest to your likings.

Last updated