local doors = {
	--[[
		MRPD
	]]--
	{ -- [MRPD] captains office
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 447.25018310547, y = -980.03253173828, z = 30.689426422119},
		ents = {{
			mdl = -1320876379,
			x = 446.572,
			y = -980.010,
			z = 30.838
		}},
	},
	{ -- [MRPD] armory
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 453.07046508789, y = -982.51171875, z = 30.689443588257},
		ents = {{
			mdl = -1033001619,
			x = 453.093,
			y = -983.229,
			z = 30.839
		}},
	},
	{ -- [MRPD] changing room lobby door
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 449.93371582031, y = -986.52996826172, z = 30.68943977356},
		ents = {{
			mdl = 1557126584,
			x = 450.104,
			y = -985.738,
			z = 30.839
		}},
	},
	{ -- [MRPD] changing room door
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 451.92156982422, y = -987.48687744141, z = 30.68943977356},
		ents = {{
			mdl = -2023754432,
			x = 451.325,
			y = -987.365,
			z = 30.840
		}},
	},
	{ -- [MRPD] helipad door
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 464.46398925781, y = -983.94659423828, z = 43.691871643066},
		ents = {{
			mdl = -340230128,
			x = 464.361,
			y = -984.678,
			z = 43.834
		}},
	},
	{ -- [MRPD] Staircase to roof second floor door
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 463.57946777344, y = -984.06402587891, z = 35.931091308594},
		ents = {{
			mdl = -131296141,
			x = 463.699,
			y = -983.379,
			z = 35.994
		}},
	},
	{ -- [MRPD] lobby double doors
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 444.72122192383, y = -989.41009521484, z = 30.68989944458},
		ents = {
			{
				mdl = 185711165,
				x = 446.007,
				y = -989.445,
				z = 30.839
			},
			{
				mdl = 185711165,
				x = 443.407,
				y = -989.445,
				z = 30.839
			},
		},
	},
	{ -- [MRPD] Stair case
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 443.10925292969, y = -993.15270996094, z = 30.689449310303},
		ents = {
			{
				mdl = -131296141,
				x = 443.029,
				y = -994.541,
				z = 30.838
			},
			{
				mdl = -131296141,
				x = 443.029,
				y = -991.941,
				z = 30.838
			},
		},
	},
	{ -- [MRPD] Outside lot doors
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 445.74417114258, y = -999.00347900391, z = 30.493221282959},
		ents = {
			{
				mdl = -1033001619,
				x = 447.218,
				y = -999.002,
				z = 30.789
			},
			{
				mdl = -1033001619,
				x = 444.621,
				y = -999.001,
				z = 30.788
			},
		},
	},
	{ -- [MRPD] Outside lot Roof
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 463.40081787109, y = -1010.9543457031, z = 32.983413696289},
		ents = {{
			mdl = 507213820,
			x = 464.158,
			y = -1011.260,
			z = 33.011
		}},
	},
	{ -- [MRPD] Photo suspect room
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 443.60104370117, y = -988.56866455078, z = 26.674114227295},
		ents = {{
			mdl = -131296141,
			x = 442.662,
			y = -988.241,
			z = 26.819
		}},
	},
	{ -- [MRPD] Photo officer room room
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 442.02255249023, y = -985.90533447266, z = 26.683330535889},
		ents = {{
			mdl = -131296141,
			x = 442.047,
			y = -986.612,
			z = 26.819
		}},
	},
	{ -- [MRPD] Briefing
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 451.68701171875, y = -979.55944824219, z = 26.668546676636},
		ents = {{
			mdl = -543497392,
			x = 452.637,
			y = -979.554,
			z = 26.819
		}},
	},
	{ -- [MRPD] office
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 445.09066772461, y = -979.56427001953, z = 26.668546676636},
		ents = {{
			mdl = -543497392,
			x = 444.194,
			y = -979.552,
			z = 26.818
		}},
	},
	{ -- [MRPD] Medical
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 439.07339477539, y = -979.66955566406, z = 26.544178009033},
		ents = {{
			mdl = -543497392,
			x = 438.470,
			y = -979.552,
			z = 26.822
		}},
	},
	{ -- [MRPD] Storage/server/lab
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 465.25653076172, y = -990.05004882813, z = 24.81471824646},
		ents = {
			{
				mdl = -543497392,
				x = 465.568,
				y = -988.703,
				z = 25.068
			},
			{
				mdl = -543497392,
				x = 465.568,
				y = -991.304,
				z = 25.068
			},
		},
	},
	{ -- [MRPD] Storge
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 471.23779296875, y = -985.24664306641, z = 24.91471862793},
		ents = {{
			mdl = -131296141,
			x = 471.315,
			y = -986.109,
			z = 25.057
		}},
	},
	{ -- [MRPD] cage
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 475.73379516602, y = -985.47198486328, z = 24.915878295898},
		ents = {{
			mdl = 91564889,
			x = 475.474,
			y = -987.100259,
			z = 25.226
		}},
	},
	{ -- [MRPD] Server
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 468.52621459961, y = -977.94940185547, z = 24.914705276489},
		ents = {{
			mdl = -131296141,
			x = 467.593,
			y = -977.993,
			z = 25.057
		}},
	},
	{ -- [MRPD] Lab
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 463.51782226563, y = -981.49456787109, z = 24.914699554443},
		ents = {{
			mdl = -131296141,
			x = 463.614,
			y = -980.581,
			z = 25.057
		}},
	},
	{ -- [MRPD] inner holding cells gate
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 463.68035888672, y = -992.54150390625, z = 24.91508102417},
		ents = {{
			mdl = 631614199,
			x = 464.570,
			y = -992.664,
			z = 25.06
		}},
	},
	{ -- [MRPD] cell 1 (from left)
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 461.92553710938, y = -1001.9869995117, z = 24.915079116821},
		ents = {{
			mdl = 631614199,
			x = 461.806,
			y = -1001.301,
			z = 25.06
		}},
	},
	{ -- [MRPD] cell 2 (from left)
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 461.88604736328, y = -998.41229248047, z = 24.915079116821},
		ents = {{
			mdl = 631614199,
			x = 461.806,
			y = -997.658,
			z = 25.06
		}},
	},
	{ -- [MRPD] cell 3 (from left)
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 462.00164794922, y = -993.53778076172, z = 24.915077209473},
		ents = {{
			mdl = 631614199,
			x = 461.806,
			y = -994.408,
			z = 25.06
		}},
	},
	{ -- [MRPD] holding cells 1
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 468.16009521484, y = -996.60192871094, z = 24.914691925049},
		ents = {{
			mdl = -1033001619,
			x = 467.192,
			y = -996.459,
			z = 25.005
		}},
	},
	{ -- [MRPD] holding cells 2
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 472.35980224609, y = -996.560546875, z = 24.914691925049},
		ents = {{
			mdl = -1033001619,
			x = 471.475,
			y = -996.459,
			z = 25.005
		}},
	},
	{ -- [MRPD] holding cells 3
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 476.78530883789, y = -996.525390625, z = 24.914691925049},
		ents = {{
			mdl = -1033001619,
			x = 475.754,
			y = -996.459,
			z = 25.005
		}},
	},
	{ -- [MRPD] holding cells 4
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 480.99395751953, y = -996.51000976563, z = 24.914691925049},
		ents = {{
			mdl = -1033001619,
			x = 480.030,
			y = -996.459,
			z = 25.005
		}},
	},
	{ -- [MRPD] Interview 1
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 467.51254272461, y = -1003.4966430664, z = 24.914693832397},
		ents = {{
			mdl = -1033001619,
			x = 468.487,
			y = -1003.547,
			z = 25.013
		}},
	},
	{ -- [MRPD] Interview 2
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 472.38497924805, y = -1003.4737548828, z = 24.914693832397},
		ents = {{
			mdl = -1033001619,
			x = 471.474,
			y = -1003.538,
			z = 25.012
		}},
	},
	{ -- [MRPD] Interview 3
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 476.08471679688, y = -1003.5630493164, z = 24.914693832397},
		ents = {{
			mdl = -1033001619,
			x = 477.049,
			y = -1003.552,
			z = 25.012
		}},
	},
	{ -- [MRPD] Interview 4
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 480.99353027344, y = -1003.4977416992, z = 24.914693832397},
		ents = {{
			mdl = -1033001619,
			x = 480.030,
			y = -1003.538,
			z = 25.005
		}},
	},
	{ -- [MRPD] Meeting room next to back door
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 469.93054199219, y = -1010.3154296875, z = 26.386299133301},
		ents = {
			{
				mdl = -543497392,
				x = 470.020,
				y = -1009.145,
				z = 26.540
			},
			{
				mdl = -543497392,
				x = 470.016,
				y = -1011.741,
				z = 26.540
			},
		},
	},
--	{ -- [MRPD] holding cells rear door
--		double = false,
--		locked = true,
--		lookingat = true,
--		lockdist = 2,
--		disp = {x = 464.18118286133, y = -1003.5407714844, z = 24.915071487427},
--		ents = {{
--			mdl = -1033001619,
--			x = 463.478,
--			y = -1003.538,
--			z = 25.005
--		}},
--	},
	{ -- [MRPD] rear entrance
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 468.68609619141, y = -1014.3939208984, z = 26.386367797852},
		ents = {
			{
				mdl = -2023754432,
				x = 467.371,
				y = -1014.452,
				z = 26.53
			},
			{
				mdl = -2023754432,
				x = 469.967,
				y = -1014.452,
				z = 26.537
			},
		},
	},
	{ -- [MRPD] rear gate
		double = false,
		locked = true,
		lookingat = false,
		lockdist = 10,
		disp = {x = 489.42715454102, y = -1017.2208862305, z = 28.039844512939},
		ents = {{
			mdl = -1603817716,
			x = 488.894,
			y = -1017.210,
			z = 27.145
		}},
	},
	--[[
		Sandy Shores
	]]--
	{ -- [SANDY] front door
		double = false,
		locked = false,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1855.095703125, y = 3683.5017089844, z = 34.275344848633},
		ents = {{
			mdl = -1765048490,
			x = 1855.689,
			y = 3683.919,
			z = 34.592
		}},
	},
	{ -- [SANDY] meeting room
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1857.037109375, y = 3690.1330566406, z = 34.27685546875},
		ents = {{
			mdl = -1033001619,
			x = 1856.125,
			y = 3689.656,
			z = 34.419
		}},
	},
	{ -- [SANDY] evidence / weapon room
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1851.7095947266, y = 3695.5925292969, z = 34.276863098145},
		ents = {{
			mdl = -1033001619,
			x = 1851.117,
			y = 3696.457,
			z = 34.421
		}},
	},
	{ -- [SANDY] main > hall
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1850.5668945313, y = 3682.9252929688, z = 34.276859283447},
		ents = {
			{
				mdl = -2023754432,
				x = 1851.288,
				y = 3681.868,
				z = 34.420
			},
			{
				mdl = -2023754432,
				x = 1849.967,
				y = 3684.1044,
				z = 34.420
			},
		},
	},
	{ -- [SANDY] hall > cells
		double = true,
		locked = false,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1844.8298339844, y = 3681.7060546875, z = 34.276866912842},
		ents = {
			{
				mdl = -2023754432,
				x = 1843.717,
				y = 3681.074,
				z = 34.419
			},
			{
				mdl = -2023754432,
				x = 1845.971,
				y = 3682.372,
				z = 34.419
			},
		},
	},
	{ -- [SANDY] Cell left first
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1842.380859375, y = 3682.3208007813, z = 34.27685546875},
		ents = {{
			mdl = 631614199,
			x = 1841.859,
			y = 3683.236,
			z = 34.416
			}},
	},
	{ -- [SANDY] Cell left second
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1840.8865966797, y = 3684.9274902344, z = 34.27685546875},
		ents = {{
			mdl = 631614199,
			x = 1840.371,
			y = 3685.841,
			z = 34.416
			}},
	},
	{ -- [SANDY] Cell right first
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1845.8293457031, y = 3683.7687988281, z = 34.276878356934},
		ents = {{
			mdl = 631614199,
			x = 1846.336,
			y = 3682.859,
			z = 34.416
			}},
	},
	{ -- [SANDY] Cell right second
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1844.3096923828, y = 3686.3586425781, z = 34.276878356934},
		ents = {{
			mdl = 631614199,
			x = 1844.832,
			y = 3685.461,
			z = 34.416
			}},
	},
	{ -- [SANDY] cells > questioning
		double = true,
		locked = false,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1841.9870605469, y = 3686.849609375, z = 34.27685546875},
		ents = {
			{
				mdl = -2023754432,
				x = 1840.832,
				y = 3686.243,
				z = 34.419
			},
			{
				mdl = -2023754432,
				x = 1843.086,
				y = 3687.539,
				z = 34.419
			},
		},
	},
	{ -- [SANDY] halls > questioning watch
		double = true,
		locked = false,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1835.2150878906, y = 3682.8361816406, z = 34.276847839355},
		ents = {
			{
				mdl = -2023754432,
				x = 1834.131,
				y = 3682.258,
				z = 34.419
			},
			{
				mdl = -2023754432,
				x = 1836.385,
				y = 3683.554,
				z = 34.419
			},
		},
	},
	{ -- [SANDY] main > office
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1848.2888183594, y = 3690.5307617188, z = 34.276851654053},
		ents = {
			{
				mdl = -2023754432,
				x = 1847.157,
				y = 3689.891,
				z = 34.419
			},
			{
				mdl = -2023754432,
				x = 1849.409,
				y = 3691.188,
				z = 34.419
			},
		},
	},
	--[[
		JAIL
	]]--
	{ -- [JAIL] first gate
		double = false,
		locked = true,
		lookingat = false,
		lockdist = 10,
		disp = {x = 1844.6950683594, y = 2608.0844726563, z = 45.585975646973},
		ents = {{
			mdl = 741314661,
			x = 1844.998,
			y = 2604.812,
			z = 44.639
		}},
	},
	{ -- [JAIL] second gate
		double = false,
		locked = true,
		lookingat = false,
		lockdist = 10,
		disp = {x = 1818.7651367188, y = 2608.6252441406, z = 45.595508575439},
		ents = {{
			mdl = 741314661,
			x = 1818.542,
			y = 2604.810,
			z = 44.639
		}},
	},
	{ -- [JAIL] second gate
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = 1796.8231201172, y = 2596.703125, z = 45.664043426514},
		ents = {{
			mdl = -1156020871,
			x = 1797.760,
			y = 2596.654,
			z = 46.387
		}},
	},
	{ -- [JAIL] third gate
		double = false,
		locked = true,
		lookingat = false,
		lockdist = 10,
		disp = {x = 1796.1750488281, y = 2616.9672851563, z = 45.564987182617},
		ents = {{
			mdl = 741314661,
			x = 1799.610,
			y = 2616.975,
			z = 44.639
		}},
	},
	--[[
		Paleto
	]]--
	{ -- [Paleto] Cell Door
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = -434.835, y = 6003.869, z = 31.8661},
		ents = {{
			mdl = 631614199,
			x = -433.910,
			y = 6004.791,
			z = 31.866
		}},
	},
	{ -- [Paleto] Cell Room
		double = true,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = -441.9548034668, y = 6011.8881835938, z = 31.71639251709},
		ents = {
			{
				mdl = -2023754432,
				x = -440.987,
				y = 6012.764,
				z = 31.866
			},
			{
				mdl = -2023754432,
				x = -442.826,
				y = 6010.925,
				z = 31.866
			},
		},
	},
	{ -- [Paleto] locker room
		double = false,
		locked = true,
		lookingat = true,
		lockdist = 2,
		disp = {x = -450.09637451172, y = 6015.6474609375, z = 31.716415405273},
		ents = {{
			mdl = -2023754432,
			x = -450.715,
			y = 6016.369,
			z = 31.866
		}},
	},
	}

RegisterServerEvent('fsn_doormanager:request')
AddEventHandler('fsn_doormanager:request', function()
	TriggerClientEvent('fsn_doormanager:request', source, doors)
end)

RegisterServerEvent('fsn_doormanager:toggle')
AddEventHandler('fsn_doormanager:toggle', function(id)
	doors[id].locked = not doors[id].locked
	TriggerClientEvent('fsn_doormanager:request', -1, doors)
end)
