local objects = 
{
	-- Lyricist
	createObject(14404,1427.6999500,1460.5999800,11.6000000,0.0000000,0.0000000,0.0000000, 33), --object(jet_interior) (1)
	createObject(2140,1428.8000500,1461.5000000,9.7000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_k3_tall_unit1) (1)
	createObject(2606,1426.0000000,1460.0999800,11.9000000,0.0000000,0.0000000,88.7500000, 33), --object(cj_police_counter2) (1)
	createObject(2208,1426.3000500,1461.5000000,9.9000000,0.0000000,0.0000000,269.2500000, 33), --object(med_office7_unit_1) (1)
	createObject(1716,1426.9000200,1458.0999800,9.9000000,0.0000000,0.0000000,0.0000000, 33), --object(kb_slot_stool) (1)
	createObject(1716,1427.4000200,1459.5000000,9.9000000,0.0000000,0.0000000,0.0000000, 33), --object(kb_slot_stool) (2)
	createObject(1716,1427.4000200,1461.0999800,9.9000000,0.0000000,0.0000000,0.0000000, 33), --object(kb_slot_stool) (3)
	createObject(1726,1428.8000500,1458.1999500,9.8000000,0.0000000,0.0000000,270.0000000, 33), --object(mrk_seating2) (1)
	createObject(1727,1428.1999500,1459.6999500,9.8000000,0.0000000,0.0000000,358.0000000, 33), --object(mrk_seating2b) (1)
	createObject(1727,1429.3000500,1454.6999500,9.8000000,0.0000000,0.0000000,180.7450000, 33), --object(mrk_seating2b) (2)
	createObject(2517,1429.1999500,1453.8000500,9.8000000,0.0000000,0.0000000,272.0000000, 33), --object(cj_shower1) (1)
	createObject(2514,1430.1999500,1452.6999500,9.9000000,0.0000000,0.0000000,270.7500000, 33), --object(cj_toilet1) (1)
	createObject(2518,1428.6999500,1453.5000000,9.9000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_b_sink2) (1)
	createObject(3047,1426.6999500,1455.6999500,12.4000000,0.0000000,0.0000000,0.0000000, 33), --object(jet_baggage_door) (1)
	createObject(3047,1426.6999500,1458.1999500,12.4000000,0.0000000,0.0000000,0.2500000, 33), --object(jet_baggage_door) (2)
	createObject(3047,1426.6999500,1460.5999800,12.4000000,0.0000000,0.0000000,0.2470000, 33), --object(jet_baggage_door) (3)
	createObject(1726,1426.6999500,1462.3000500,9.8000000,0.0000000,0.0000000,90.2440000, 33), --object(mrk_seating2) (3)
	createObject(1536,1428.3000500,1452.5000000,10.0000000,0.0000000,0.0000000,92.0000000, 33), --object(gen_doorext15) (1)
	createObject(1536,1426.0999800,1452.4000200,9.8000000,0.0000000,0.0000000,2.0000000, 33), --object(gen_doorext15) (2)
	createObject(14404,1426.4000200,1444.3000500,11.6000000,0.0000000,0.0000000,180.0000000, 33), --object(jet_interior) (2)
	createObject(1726,1426.5999800,1454.1999500,9.8000000,0.0000000,0.0000000,89.4950000, 33), --object(mrk_seating2) (5)
	createObject(1562,1426.9000200,1465.3000500,10.5000000,0.0000000,0.0000000,181.2500000, 33), --object(ab_jetseat) (7)
	createObject(1562,1428.5999800,1465.4000200,10.5000000,0.0000000,0.0000000,181.2470000, 33), --object(ab_jetseat) (8)
	createObject(1563,1426.9000200,1465.0000000,11.0000000,0.0000000,0.0000000,182.0000000, 33), --object(ab_jetseat_hrest) (1)
	createObject(1563,1428.5999800,1465.0999800,11.0000000,0.0000000,0.0000000,182.0000000, 33), --object(ab_jetseat_hrest) (2)
	createObject(1731,1428.8000500,1454.3000500,11.7000000,0.0000000,0.0000000,271.5000000, 33), --object(cj_mlight3) (1)
	createObject(1731,1426.5000000,1461.8000500,11.7000000,0.0000000,0.0000000,91.0000000, 33), --object(cj_mlight3) (2)
	createObject(1731,1426.5999800,1462.3000500,11.7000000,0.0000000,0.0000000,268.9940000, 33), --object(cj_mlight3) (3)
	createObject(18075,1426.5999800,1461.3000500,14.2000000,0.4450000,27.0010000,0.5230000, 33), --object(lightd) (1)
	createObject(18075,1426.5999800,1459.1999500,14.2000000,0.4450000,26.9990000,0.5220000, 33), --object(lightd) (2)
	createObject(2596,1426.5999800,1464.3000500,11.8000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_sex_tv) (1)
	createObject(1828,1426.3000500,1448.4000200,9.9000000,0.0000000,0.0000000,270.0000000, 33), --object(man_sdr_rug) (1)
	createObject(2298,1428.3000500,1449.5999800,9.9000000,0.0000000,0.0000000,180.2500000, 33), --object(swank_bed_7) (1)
	createObject(2140,1425.3000500,1450.3000500,9.7000000,0.0000000,0.0000000,87.0000000, 33), --object(cj_k3_tall_unit1) (2)
	createObject(2518,1425.5999800,1451.4000200,9.9000000,0.0000000,0.0000000,178.5000000, 33), --object(cj_b_sink2) (2)
	createObject(2517,1424.8000500,1451.0999800,9.8000000,0.0000000,0.0000000,90.7500000, 33), --object(cj_shower1) (2)
	createObject(2514,1423.8000500,1452.0999800,9.9000000,0.0000000,0.0000000,83.4970000, 33), --object(cj_toilet1) (2)
	createObject(1536,1425.8000500,1450.8000500,10.0000000,0.0000000,0.0000000,90.0000000, 33), --object(gen_doorext15) (4)
	createObject(2707,1426.4000200,1450.4000200,13.3000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_light_fit) (1)
	createObject(2707,1426.4000200,1448.3000500,13.3000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_light_fit) (2)
	createObject(2707,1426.4000200,1446.0000000,13.3000000,0.0000000,0.0000000,0.0000000, 33), --object(cj_light_fit) (3)
	createObject(3047,1427.4000200,1449.1999500,12.4000000,0.0000000,0.0000000,180.2500000, 33), --object(jet_baggage_door) (4)
	createObject(3047,1427.4000200,1446.6999500,12.4000000,0.0000000,0.0000000,180.2470000, 33), --object(jet_baggage_door) (5)
	createObject(2271,1425.5999800,1446.0999800,11.4000000,0.0000000,0.0000000,180.2500000, 33), --object(frame_wood_1) (1)
	createObject(2269,1427.0999800,1446.0000000,11.3000000,0.0000000,0.0000000,184.0000000, 33), --object(frame_wood_4) (1)
	createObject(1727,1427.4000200,1450.8000500,9.9000000,0.0000000,0.0000000,268.0000000, 33), --object(mrk_seating2b) (6)
	createObject(14563,1415.5000000,1436.0000000,1.3000000,359.7500000,180.0000000,89.0000000, 33), --object(triad_main) (1)
	createObject(14404,1418.0000000,1442.8000500,12.3000000,0.0000000,0.0000000,88.2420000, 33), --object(jet_interior) (6)
	createObject(14404,1419.5000000,1442.6999500,12.2000000,0.0000000,0.0000000,88.2420000, 33), --object(jet_interior) (7)
	createObject(14404,1420.3000500,1442.6999500,12.1000000,0.0000000,0.0000000,88.2420000, 33), --object(jet_interior) (8)
	createObject(14404,1418.0000000,1442.8000500,11.6000000,0.0000000,0.0000000,88.2440000, 33), --object(jet_interior) (3)
	createObject(14404,1419.5000000,1442.6999500,11.6000000,0.0000000,0.0000000,88.2420000, 33), --object(jet_interior) (4)
	createObject(14404,1420.3000500,1442.6999500,11.6000000,0.0000000,0.0000000,88.2420000, 33) --object(jet_interior) (5)
}

local col = createColSphere(2518,1425.5999800,1451.4000200,2707,1426.4000200,1446.0000000)
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, 65535 )
end

for key, value in pairs( objects ) do
	setElementDoubleSided( value, true )
end
