---
description: This page will give you a brief overlook on how to install this resource
---

# How to Install

{% hint style="warning" %}
Make sure you follow all the steps, if you encounter any errors make sure you did everything correctly.
{% endhint %}

{% stepper %}
{% step %}
Add the resource

1. If you are using the previous version of the resource, just replace it with the new one, because the previous version and the current one have a lot of revisions! / If by chance the previous version works for you and you don't want to switch to the v2 version, don't change it, but the <mark style="color:red;">**v1 version will no longer be supported!**</mark>
2. Insert `vt-jewellery` into your server
3. Remember to `еnsure vt-jewellery` in your **server.cfg**
{% endstep %}

{% step %}
### **Run the resource before all resources in server.cfg**

```lua
# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager

# These resources will start by default.
ensure mapmanager
ensure vt-chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents

# QBCore & Extra stuff
ensure oxmysql  
ensure ox_lib - this is a must!
ensure qb-core
ensure ox_target
ensure ox_inventory
ensure ox_doorlock
ensure mka-lasers
ensure bd-minigames
ensure ps-dispatch
ensure vt-jewellery
```
{% endstep %}

{% step %}
Change everything config.lua

**Change anything that needs to be changed in the configuration. Right now everything is set up to work with ox**
{% endstep %}

{% step %}
Add Items to Inventory

{% tabs %}
{% tab title="QBCore Items" %}
```lua
['thermite'] 			 	 	 = {['name'] = 'thermite', 			['label'] = 'Thermite', 		        ['weight'] = 1000, 		['type'] = 'item', 		['image'] = 'thermite.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,    ['combinable'] = nil,   ['description'] = 'Sometimes you\'d wish for everything to burn',
["keycard3"]                                     = {["name"] = "keycard3",                      ["label"] = "System Override",                  ["weight"] = 2500,              ["type"] = "item",              ["image"] = "keycard3.png",                     ["unique"] = true,      ["useable"] = false,    ["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "This tool is your key to cracking laser-secured systems."},
['goldchain'] 				         = {['name'] = 'goldchain', 			['label'] = '10k Gold Chain', 			['weight'] = 200, 		['type'] = 'item', 		['image'] = '10kgoldchain.png', 		['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = '10 carat golden chain'},
['rolex'] 				 	 = {['name'] = 'rolex', 			['label'] = 'Golden Watch', 			['weight'] = 150, 		['type'] = 'item', 		['image'] = 'rolex.png', 			['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A golden watch seems like the jackpot to me!'},
['diamond_ring'] 				 = {['name'] = 'diamond_ring', 			['label'] = 'Diamond Ring', 			['weight'] = 150, 		['type'] = 'item', 		['image'] = 'diamond_ring.png', 		['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A diamond ring seems like the jackpot to me!'},
['goldchain'] 				 	 = {['name'] = 'goldchain', 			['label'] = 'Golden Chain', 			['weight'] = 150, 		['type'] = 'item', 		['image'] = 'goldchain.png', 			['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A golden chain seems like the jackpot to me!'},
```
{% endtab %}

{% tab title="Ox Inventory Items" %}
```
       ["thermite"] = {
		label = "Thermite",
		weight = 1000,
		stack = true,
		close = true,
		description = "Sometimes you'd wish for everything to burn",
		client = {
			image = "thermite.png",
		}
	},
	["keycard3"] = {
		label = "System Override",
		weight = 1000,
		stack = false,
		close = true,
		description = "This tool is your key to cracking laser-secured systems.",
		client = {
			image = "keycard3.png",
		}
	},	
	["10kgoldchain"] = {
		label = "10k Gold Chain",
		weight = 2000,
		stack = true,
		close = true,
		description = "10 carat golden chain",
		client = {
			image = "10kgoldchain.png",
		}
	},
	["rolex"] = {
		label = "Golden Watch",
		weight = 1500,
		stack = true,
		close = true,
		description = "A golden watch seems like the jackpot to me!",
		client = {
			image = "rolex.png",
		}
	},
	["diamond_ring"] = {
		label = "Diamond Ring",
		weight = 1500,
		stack = true,
		close = true,
		description = "A diamond ring seems like the jackpot to me!",
		client = {
			image = "diamond_ring.png",
		}
	},
	["goldchain"] = {
		label = "Golden Chain",
		weight = 1500,
		stack = true,
		close = true,
		description = "A golden chain seems like the jackpot to me!",
		client = {
			image = "goldchain.png",
		}
	},
```
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
Doorlock setting

{% tabs %}
{% tab title="QBCore and NUI Doorlock" %}
Add to configs/ new file name jewelry.lua

```lua
-- doble created by ^4 vank1ta
Config.DoorList['Jewelry'] = {
    locked = true,
    authorizedJobs = { ['police'] = 0 },
    doorRate = 1.0,
    distance = 5,
    doors = {
        {objName = 1425919976, objYaw = 306.00003051758, objCoords = vec3(-631.955383, -236.333267, 38.206532)},
        {objName = 9467943, objYaw = 306.00003051758, objCoords = vec3(-630.426514, -238.437546, 38.206532)}
    },
    doorType = 'double',
}
```
{% endtab %}

{% tab title="OXDoorlock" %}
{% hint style="warning" %}
Add this file to the already existing `ox_doorlock` table
{% endhint %}

```sql
INSERT INTO `ox_doorlock` (`id`, `name`, `data`) VALUES
(18, 'Jewelry', '{\"doorRate\":2,\"maxDistance\":2,\"state\":1,\"coords\":{\"x\":-631.19091796875,\"y\":-237.38540649414063,\"z\":38.2065315246582},\"doors\":[{\"coords\":{\"x\":-630.426513671875,\"y\":-238.4375457763672,\"z\":38.2065315246582},\"heading\":306,\"model\":9467943},{\"coords\":{\"x\":-631.9553833007813,\"y\":-236.33326721191407,\"z\":38.2065315246582},\"heading\":306,\"model\":1425919976}]}')
ON DUPLICATE KEY UPDATE
`name` = VALUES(`name`), 
`data` = VALUES(`data`);
```
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
Add the images to the inventory as well.

[**https://imgur.com/a/fQXcgAp**](https://imgur.com/a/fQXcgAp)
{% endstep %}
{% endstepper %}
