-----------------------------------------------------------------------------------------------------------------------------------------
-- REGISTERS
-----------------------------------------------------------------------------------------------------------------------------------------
local Registers = {
	["1"] = vec3(24.97, -1344.95, 29.68),
	["2"] = vec3(24.96, -1347.28, 29.68),
	["3"] = vec3(2554.88, 381.41, 108.81),
	["4"] = vec3(2557.21, 381.33, 108.81),
	["5"] = vec3(1164.19, -322.88, 69.39),
	["6"] = vec3(1164.55, -324.89, 69.39),
	["7"] = vec3(-706.65, -913.68, 19.4),
	["8"] = vec3(-706.66, -915.72, 19.4),
	["9"] = vec3(-47.22, -1757.64, 29.6),
	["10"] = vec3(-48.53, -1759.21, 29.6),
	["11"] = vec3(373.63, 328.58, 103.75),
	["12"] = vec3(373.06, 326.32, 103.75),
	["13"] = vec3(-3244.57, 1000.68, 13.01),
	["14"] = vec3(-3242.24, 1000.47, 13.01),
	["15"] = vec3(1729.35, 6417.12, 35.22),
	["16"] = vec3(1728.3, 6415.03, 35.22),
	["17"] = vec3(548.88, 2668.95, 42.34),
	["18"] = vec3(548.58, 2671.26, 42.34),
	["19"] = vec3(1959.35, 3742.31, 32.53),
	["20"] = vec3(1960.52, 3740.29, 32.53),
	["21"] = vec3(2676.23, 3280.99, 55.42),
	["22"] = vec3(2678.27, 3279.85, 55.42),
	["23"] = vec3(1698.32, 4923.39, 42.25),
	["24"] = vec3(1696.66, 4924.55, 42.25),
	["25"] = vec3(-1820.47, 793.81, 138.28),
	["26"] = vec3(-1819.09, 792.32, 138.27),
	["27"] = vec3(1393.08, 3605.96, 35.18),
	["28"] = vec3(-2967.04, 390.91, 15.22),
	["29"] = vec3(-3041.35, 584.28, 8.09),
	["30"] = vec3(-3039.13, 584.99, 8.09),
	["31"] = vec3(1134.83, -982.36, 46.59),
	["32"] = vec3(1165.96, 2710.2, 38.33),
	["33"] = vec3(-1486.68, -378.47, 40.34),
	["34"] = vec3(-1222.32, -907.81, 12.5),
	["35"] = vec3(-160.66, 6321.81, 31.76),
	["36"] = vec3(1693.59, 3761.59, 34.89),
	["37"] = vec3(1693.32, 3755.67, 34.89),
	["38"] = vec3(252.84, -51.62, 70.13),
	["39"] = vec3(250.82, -46.05, 70.13),
	["40"] = vec3(841.06, -1034.74, 28.38),
	["41"] = vec3(845.6, -1030.93, 28.38),
	["42"] = vec3(-330.27, 6085.54, 31.64),
	["43"] = vec3(-330.79, 6079.63, 31.64),
	["44"] = vec3(-660.93, -934.11, 22.02),
	["45"] = vec3(-665.47, -937.92, 22.02),
	["46"] = vec3(-1304.98, -395.8, 36.88),
	["47"] = vec3(-1307.57, -390.48, 36.88),
	["48"] = vec3(-1117.6, 2700.26, 18.74),
	["49"] = vec3(-1118.43, 2694.39, 18.74),
	["50"] = vec3(2566.6, 293.15, 108.92),
	["51"] = vec3(2571.14, 296.97, 108.92),
	["52"] = vec3(-3172.5, 1089.41, 21.03),
	["53"] = vec3(-3170.79, 1083.74, 21.03),
	["54"] = vec3(23.69, -1106.47, 29.98),
	["55"] = vec3(18.11, -1108.53, 29.98),
	["56"] = vec3(808.87, -2158.49, 29.81),
	["57"] = vec3(813.4, -2154.65, 29.81),
	["58"] = vec3(-821.6, -183.78, 37.55),
	["59"] = vec3(134.06, -1708.19, 29.46),
	["60"] = vec3(-1284.75, -1115.08, 7.16),
	["61"] = vec3(1930.84, 3727.52, 33.01),
	["62"] = vec3(1211.07, -470.23, 66.39),
	["63"] = vec3(-30.32, -151.31, 57.24),
	["64"] = vec3(-278.11, 6231.06, 31.86),
	["65"] = vec3(78.05, -1388.22, 29.51),
	["66"] = vec3(74.89, -1388.21, 29.51),
	["67"] = vec3(74.53, -1392.08, 29.51),
	["68"] = vec3(-817.02, -1073.53, 11.46),
	["69"] = vec3(-818.58, -1070.79, 11.46),
	["70"] = vec3(-822.11, -1072.41, 11.46),
	["71"] = vec3(-1192.1, -766.32, 17.45),
	["72"] = vec3(-1193.55, -767.4, 17.45),
	["73"] = vec3(-1194.94, -768.44, 17.45),
	["74"] = vec3(-0.42, 6511.21, 32.01),
	["75"] = vec3(1.72, 6508.89, 32.01),
	["76"] = vec3(4.8, 6511.26, 32.01),
	["77"] = vec3(1691.88, 4817.84, 42.2),
	["78"] = vec3(1695.0, 4818.25, 42.2),
	["79"] = vec3(1694.86, 4822.11, 42.2),
	["80"] = vec3(125.83, -225.75, 54.69),
	["81"] = vec3(126.45, -224.05, 54.69),
	["82"] = vec3(127.04, -222.42, 54.69),
	["83"] = vec3(613.4, 2764.55, 42.22),
	["84"] = vec3(613.53, 2762.75, 42.22),
	["85"] = vec3(613.65, 2761.03, 42.22),
	["86"] = vec3(1201.36, 2707.57, 38.36),
	["87"] = vec3(1201.35, 2710.71, 38.36),
	["88"] = vec3(1197.5, 2711.08, 38.36),
	["89"] = vec3(-3170.64, 1041.78, 21.0),
	["90"] = vec3(-3169.92, 1043.43, 21.0),
	["91"] = vec3(-3169.22, 1045.02, 21.0),
	["92"] = vec3(-1096.17, 2711.7, 19.24),
	["93"] = vec3(-1098.28, 2714.03, 19.24),
	["94"] = vec3(-1101.4, 2711.74, 19.24),
	["95"] = vec3(422.91, -810.92, 29.62),
	["96"] = vec3(426.06, -810.9, 29.62),
	["97"] = vec3(426.43, -807.06, 29.62),
	["98"] = vec3(1324.56, -1651.13, 52.46),
	["99"] = vec3(-1152.22, -1424.77, 5.14),
	["100"] = vec3(320.59, 181.45, 103.78),
	["101"] = vec3(-3170.94, 1073.85, 21.02),
	["102"] = vec3(1861.45, 3748.56, 33.22),
	["103"] = vec3(-290.98, 6199.91, 31.68),
	["104"] = vec3(564.61, 2752.47, 43.06),
	["105"] = vec3(560.33, 2748.38, 43.06),
	["106"] = vec3(-658.11, -858.16, 24.68)
}
-----------------------------------------------------------------------------------------------------------------------------------------
-- THREADROBBERY
-----------------------------------------------------------------------------------------------------------------------------------------
CreateThread(function()
	for Number,v in pairs(Registers) do
		exports["target"]:AddCircleZone("Robberys:Registers:"..Number, v, 0.25, {
			name = "Robberys:Registers:"..Number,
			heading = 0.0,
			useZ = true
		}, {
			shop = Number,
			Distance = 1.25,
			options = {
				{
					event = "register:Init",
					tunnel = "shop",
					label = "Roubar"
				}
			}
		})
	end
end)
-----------------------------------------------------------------------------------------------------------------------------------------
-- REGISTER:INIT
-----------------------------------------------------------------------------------------------------------------------------------------
AddEventHandler("register:Init", function(Number)
	if vSERVER.RegistersTimers(Number) then
		local safeCraking = exports["safecrack"]:safeCraking(3)
		if safeCraking then
			vSERVER.RegistersPay()
		end
	end
end)
