Installations

Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c) (3) of the Digital Millennium Copyright Act

STEP 1 - Dependencies

It is important to use the dependencies that are indicated in this step, do not use others, otherwise you will receive critical errors.
If u don't have the script 'baseevents' the hotwire system don't work.
Lockpick
Skillbar
baseevents
If u already have ignore
You need have the last version of baseevents
The resource is in cfx-server-data/resources/[system]/baseevents
The only requirement for this script is to have one of these two inventories, more compatibilities will be added soon

STEP 2 - Start order

It is important to put the resources in the correct order, below es_extened but above the other scripts
In order for the resource to start correctly and not receive any errors, we must start the resources in the following order.
1
ensure baseevents
2
ensure lockpick
3
ensure reload-skillbar
4
ensure qs-inventory -- [or your inventory]
5
ensure qs-vehiclekeys

STEP 3 - Database

In this case, the database and items of this resource will be a metadata, therefore it will not work with the default esx inventory, you will have to add the items in your core or inventory depending on the system you use

QS or QB database

qs-core/shared/items.lua
1
["vehiclekeys"] = {
2
["name"] = "vehiclekeys",
3
["label"] = "Vehicle Keys",
4
["weight"] = 50,
5
["type"] = "item",
6
["image"] = "vehiclekeys.png",
7
["unique"] = true,
8
["useable"] = true,
9
["shouldClose"] = true,
10
["combinable"] = nil,
11
["description"] = "A small and sweet casting."
12
},
13
14
["plate"] = {
15
["name"] = "plate",
16
["label"] = "Plate and Keys",
17
["weight"] = 200,
18
["type"] = "item",
19
["image"] = "plate.png",
20
["unique"] = true,
21
["useable"] = true,
22
["shouldClose"] = true,
23
["combinable"] = nil,
24
["description"] = "A small and sweet casting."
25
},

OX Inventory

ox_inventory/data/items.lua
1
["vehiclekeys"] = {
2
label = "Keys",
3
weight = 1,
4
stack = false,
5
close = false,
6
consume = 0,
7
client = {
8
export = 'qs-vehiclekeys.useKey',
9
},
10
},
11
12
['plate'] = {
13
label = 'Plate',
14
weight = 100,
15
stack = true,
16
close = false,
17
description = "Plate for vehicle"
18
},