📃How to Install
This page will give you a brief overlook on how to install this resource
Make sure you follow all the steps, if you encounter any errors make sure you did everything correctly.
Add the resource
- 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 v1 version will no longer be supported! 
- Insert - vt-jewelleryinto your server
- Remember to - еnsure vt-jewelleryin your server.cfg
Run the resource before all resources in server.cfg
# 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-jewelleryChange everything config.lua
Change anything that needs to be changed in the configuration. Right now everything is set up to work with ox
Add Items to Inventory
['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!'},       ["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",
		}
	},Doorlock setting
Add to configs/ new file name jewelry.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',
}Add this file to the already existing ox_doorlock table
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`);Add the images to the inventory as well.
Last updated
