local objects = 
{
	createObject(3055,1385.0146500,1468.0957000,9.8545800,90.0000000,179.9950000,90.0000000, 45), --object(kmb_shutter) (2)
	createObject(3055,1382.0859400,1468.0576200,10.2989200,0.0000000,0.0000000,90.0000000, 45), --object(kmb_shutter) (5)
	createObject(3055,1384.2841800,1479.0000000,10.2989200,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (6)
	createObject(3055,1387.0000000,1468.0683600,10.2989200,0.0000000,0.0000000,270.0000000, 45), --object(kmb_shutter) (7)
	createObject(14851,1375.6611300,1460.0999800,8.1351200,0.0000000,0.0000000,270.0080000, 45), --object(mp_sfpd_signa) (1)
	createObject(11631,1386.3000500,1467.6992200,11.1000000,0.0000000,0.0000000,270.0110000, 45), --object(ranch_desk) (1)
	createObject(1958,1382.6074200,1468.5813000,10.6134400,0.0000000,0.0000000,268.7270000, 45), --object(mxr_mix_body) (1)
	createObject(2606,1382.1999500,1468.8000500,11.9000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_police_counter2) (2)
	createObject(2372,1381.6967800,1465.4161400,10.6924600,89.6160000,246.4640000,203.5360000, 45), --object(clothes_rail2) (1)
	createObject(2008,1382.7211900,1468.5100100,9.8476200,0.0000000,0.0000000,90.0000000, 45), --object(officedesk1) (1)
	createObject(3055,1389.2500000,1466.5068400,10.2989200,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (8)
	createObject(3055,1379.9599600,1466.5175800,10.2989200,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (9)
	createObject(2606,1382.1999500,1468.8000500,11.4000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_police_counter2) (4)
	createObject(2356,1385.5999800,1467.5000000,9.9000000,0.0000000,0.0000000,270.0000000, 45), --object(police_off_chair) (1)
	createObject(2356,1383.5397900,1469.2520800,9.8644200,0.0000000,0.0000000,90.0050000, 45), --object(police_off_chair) (2)
	createObject(2227,1381.8101800,1468.5567600,10.0561700,0.0000000,0.0000000,90.0000000, 45), --object(swank_hi_fi_3) (1)
	createObject(2007,1382.6551500,1467.3256800,9.3751100,0.0000000,0.0000000,90.1280000, 45), --object(filing_cab_nu01) (1)
	createObject(3055,1382.5771500,1468.0500500,13.1200000,90.0000000,179.9950000,270.0000000, 45), --object(kmb_shutter) (10)
	createObject(3055,1387.6044900,1468.0488300,13.1028900,90.0000000,179.9950000,269.9950000, 45), --object(kmb_shutter) (11)
	createObject(3793,1382.4140600,1465.8579100,11.3889200,0.0330000,270.0330000,229.9630000, 45), --object(missile_06_sfxr) (4)
	createObject(3793,1382.4194300,1464.7617200,11.3889200,0.0270000,270.0330000,229.9600000, 45), --object(missile_06_sfxr) (5)
	createObject(2372,1381.7109400,1466.5112300,10.6924600,89.6150000,246.4620000,203.5330000, 45), --object(clothes_rail2) (3)
	createObject(3055,1389.5605500,1464.1585700,10.2989200,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (12)
	createObject(3055,1379.9493400,1464.1566200,10.2989200,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (13)
	createObject(3055,1383.5950900,1464.1331800,12.0940300,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (14)
	createObject(3055,1383.5478500,1466.5283200,14.6000000,0.0000000,0.0000000,0.0000000, 45), --object(kmb_shutter) (15)
	createObject(964,1384.8544900,1479.5350300,9.8644200,0.0000000,0.0000000,0.0000000, 45), --object(cj_metal_crate) (6)
	createObject(7707,1383.7374300,1464.1043700,10.9326000,0.0000000,0.0000000,90.0000000, 45), --object(vgwbom2) (1)
	createObject(2372,1383.8358200,1463.2387700,10.5851400,89.6150000,246.4620000,291.8670000, 45), --object(clothes_rail2) (11)
	createObject(14792,1376.3000500,1485.0000000,11.3000000,0.0000000,0.0000000,90.0000000, 45), --object(ab_vgsgymbits01a) (1)
	createObject(1808,1382.5000000,1470.3000500,9.8000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_watercooler2) (1)
	createObject(2048,1386.8000500,1471.1999500,12.1000000,0.0000000,0.0000000,270.0000000, 45), --object(cj_flag2) (1)
	createObject(2133,1382.8000500,1471.0999800,9.9000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_kitch2_r) (1)
	createObject(2149,1382.5999800,1471.1999500,11.1000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_microwave1) (1)
	createObject(3055,1382.0859400,1475.8900100,10.2989200,0.0000000,0.0000000,90.0000000, 45), --object(kmb_shutter) (5)
	createObject(3055,1386.9000200,1475.8000500,10.2989200,0.0000000,0.0000000,90.0000000, 45), --object(kmb_shutter) (5)
	createObject(3055,1382.5771500,1475.8800000,13.1028900,90.0000000,179.9950000,270.0000000, 45), --object(kmb_shutter) (10)
	createObject(3055,1387.6044900,1475.8800000,13.1028900,90.0000000,179.9950000,269.9950000, 45), --object(kmb_shutter) (11)
	createObject(2762,1386.1999500,1471.1999500,10.3000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_chick_table) (1)
	createObject(1806,1385.1999500,1471.3000500,9.9000000,0.0000000,0.0000000,270.0000000, 45), --object(med_office_chair) (1)
	createObject(1806,1386.3000500,1469.6999500,9.9000000,0.0000000,0.0000000,0.0000000, 45), --object(med_office_chair) (2)
	createObject(1806,1386.3000500,1472.9000200,9.8700000,0.0000000,0.0000000,180.0000000, 45), --object(med_office_chair) (3)
	createObject(1703,1382.8000500,1472.0000000,9.8000000,0.0000000,0.0000000,90.0000000, 45), --object(kb_couch02) (1)
	createObject(18092,1382.1999500,1477.0000000,10.4000000,0.0000000,0.0000000,270.0000000, 45), --object(ammun3_counter) (1)
	createObject(1719,1386.5999800,1478.0999800,11.9000000,0.0000000,0.0000000,90.0000000, 45), --object(low_console) (1)
	createObject(1736,1382.5000000,1477.4000200,12.5000000,0.0000000,0.0000000,90.0000000, 45), --object(cj_stags_head) (1)
	createObject(3052,1382.5000000,1478.5999800,11.0000000,0.0000000,0.0000000,0.0000000, 45), --object(db_ammo) (1)
	createObject(3052,1382.5000000,1478.1999500,11.0000000,0.0000000,0.0000000,0.0000000, 45), --object(db_ammo) (2)
	createObject(3055,1385.01465,1475,9.85458,90,90,180, 45), --object(db_ammo) (2)
}

local col = createColSphere(1385.01465, 1468.0957, 9.85458, 50)
local function watchChanges( )
	if getElementDimension( getLocalPlayer( ) ) > 0 and getElementDimension( getLocalPlayer( ) ) ~= getElementDimension( objects[1] ) and getElementInterior( getLocalPlayer( ) ) == getElementInterior( objects[1] ) then
		for key, value in pairs( objects ) do
			setElementDimension( value, getElementDimension( getLocalPlayer( ) ) )
		end
	elseif getElementDimension( getLocalPlayer( ) ) == 0 and getElementDimension( objects[1] ) ~= 65535 then
		for key, value in pairs( objects ) do
			setElementDimension( value, 65535 )
		end
	end
end
addEventHandler( "onClientColShapeHit", col,
	function( element )
		if element == getLocalPlayer( ) then
			addEventHandler( "onClientRender", root, watchChanges )
		end
	end
)
addEventHandler( "onClientColShapeLeave", col,
	function( element )
		if element == getLocalPlayer( ) then
			removeEventHandler( "onClientRender", root, watchChanges )
		end
	end
)
-- Put them standby for now.
for key, value in pairs( objects ) do
	setElementDimension( value, 93 )
end
