local objects = 
{
	--Maxime
	createObject ( 2183, 2148.74023, -1413.93457, 292.73016, 0, 0, 0, 2 ),
	createObject ( 2309, 2149.37207, -1414.49121, 292.73016, 0, 0, 347.476, 2 ),
	createObject ( 2182, 2139.86523, -1429.43164, 292.73016 ,0,0,0, 2 ),
	createObject ( 1808, 2148.44531, -1418.06934, 292.73016, 0, 0, 90 , 2 ),
	createObject ( 948, 2147.30078, -1428.24316, 292.73749 ,0, 0, 0, 2 ),
	createObject ( 1714, 2160.32715, -1424.22656, 292.73016, 0, 0, 259.997 , 2 ),
	createObject ( 10184, 2118.57422, -1440.53125, 292.49863, 0, 0, 270 , 2 ),
	createObject ( 14597, 2151.13281, -1424.02441, 294.72235, 0, 0, 270 , 2 ),
	createObject ( 2166, 2160.59375, -1426.62598, 292.73749, 0, 0, 90 , 2 ),
	createObject ( 14455, 2153.30859, -1411.05664, 294.40192, 0, 0, 179.995 , 2 ),
	createObject ( 3051, 2153.53906, -1418.12988, 294.09238, 0, 0, 46.247 , 2 ),
	createObject ( 3051, 2153.54102, -1416.93359, 294.09238, 0, 0, 46.247 , 2 ),
	createObject ( 2256, 2161.59473, -1427.89453, 294.75534 ,0, 0, 0, 2 ),
	createObject ( 3017, 2151.52441, -1413.92773, 293.54083, 0, 0, 0.994 ),
	createObject ( 2073, 2150.2373, -1413.31738, 296.00092 ,0, 0, 0, 2 ),
	createObject ( 2186, 2155.07227, -1429.21973, 292.73749, 0, 0, 90 , 2 ),
	createObject ( 2202, 2147.19922, -1426.10742, 292.73749, 0, 0, 270 , 2 ),
	createObject ( 16052, 2151.36426, -1437.16211, 294.38348, 0, 0, 179.995 , 2 ),
	createObject ( 14424, 2115.78418, -1470.68945, 292.0658, 0, 0, 90 , 2 ),
	createObject ( 10184, 2111.03223, -1443.03125, 292.34247 ,0, 0, 0, 2 ),
	createObject ( 10184, 2119.00586, -1451.65137, 292.1741, 0, 0, 90 , 2 ),
	createObject ( 7924, 2125.46289, -1464.84375, 291.81491, 0, 0, 270 , 2 ),
	createObject ( 7924, 2125.46387, -1464.8418, 293.08252, 0, 0, 270 , 2 ),
	createObject ( 3278, 2127.28613, -1447.4209, 291.68579, 0, 270, 269.989 , 2 ),
	createObject ( 3278, 2127.2334, -1443.4248, 291.69443, 0, 270, 269.995 , 2 ),
	createObject ( 3440, 2122.92969, -1444.65918, 292.78799 ,0, 0, 0, 2 ),
	createObject ( 2774, 2106.10059, -1450.78027, 292.09454, 90, 179.995, 269.995 , 2 ),
	createObject ( 3051, 2111.20313, -1441.59277, 291.73297, 0, 0, 46.219 , 2 ),
	createObject ( 3051, 2111.20703, -1442.78906, 291.73376, 0, 0, 46.23 , 2 ),
	createObject ( 3440, 2111.60254, -1444.34863, 292.74524, 0, 0, 123.992 , 2 ),
	createObject ( 3440, 2123.62891, -1444.83105, 292.79221, 0, 0, 177.995 , 2 ),
	createObject ( 1569, 2124.06641, -1445.82715, 290.42413 ,0, 0, 0, 2 ),
	createObject ( 1569, 2127.06445, -1445.82227, 290.42557, 0, 0, 179.995 , 2 ),
	createObject ( 1569, 2126.93945, -1445.00293, 290.42587, 0, 0, 179.995 , 2 ),
	createObject ( 1569, 2123.94238, -1445.00781, 290.42563, 0, 0, 359.984 , 2 ),
	createObject ( 3440, 2111.62598, -1449.52917, 292.7381, 0, 0, 193.749 , 2 ),
	createObject ( 638, 2121.07227, -1450.5498, 291.10336, 0, 0, 270 , 2 ),
	createObject ( 638, 2125.20508, -1450.55273, 291.11655, 0, 0, 270 , 2 ),
	createObject ( 3440, 2123.12671, -1450.55066, 292.78818, 0, 0, 244 , 2 ),
	createObject ( 2257, 2111.21094, -1446.92676, 292.85873, 0, 0, 90 , 2 ),
	createObject ( 2637, 2116.34961, -1446.45898, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2118.29102, -1446.46387, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2120.24121, -1447.56641, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 14604, 2111.95898, -1448.53613, 291.41571, 0, 0, 289.995 , 2 ),
	createObject ( 14596, 2171.78027, -1430.73047, 291.29251, 0, 0, 90 , 2 ),
	createObject ( 1235, 2122.38477, -1444.32227, 290.94104 ,0, 0, 0, 2 ),
	createObject ( 5706, 2110.66406, -1448.54687, 286.60541 ,0, 0, 0, 2 ),
	createObject ( 3278, 2127.51636, -1447.4281, 291.69324, 0, 270, 270 , 2 ),
	createObject ( 3278, 2127.51587, -1443.41553, 291.70215, 0, 270, 270 , 2 ),
	createObject ( 1886, 2126.50391, -1441.02441, 294.48495, 0, 0, 303.997 , 2 ),
	createObject ( 2165, 2159.59766, -1424.66602, 292.73749, 0, 0, 90 , 2 ),
	createObject ( 14455, 2164.56738, -1425.92773, 294.40924, 0, 0, 90 , 2 ),
	createObject ( 14455, 2164.56372, -1433.75586, 294.40192, 0, 0, 90 , 2 ),
	createObject ( 14455, 2137.71948, -1429.3645, 294.38995, 0, 0, 270 , 2 ),
	createObject ( 14455, 2137.7168, -1421.5918, 294.40192, 0, 0, 270 , 2 ),
	createObject ( 1649, 2147.83423, -1421.60852, 294.32248, 0, 0, 90 , 2 ),
	createObject ( 1649, 2147.83838, -1433.74463, 294.32629, 0, 0, 90 , 2 ),
	createObject ( 1649, 2154.44336, -1421.58887, 294.33609, 0, 0, 270 , 2 ),
	createObject ( 1649, 2154.4397, -1433.73596, 294.33011, 0, 0, 270 , 2 ),
	createObject ( 2202, 2155.09863, -1421.59448, 292.73016, 0, 0, 90 , 2 ),
	createObject ( 2164, 2162.8877, -1427.22717, 292.73016, 0, 0, 180 , 2 ),
	createObject ( 1703, 2157.30615, -1425.79834, 292.73016, 0, 0, 90 , 2 ),
	createObject ( 2010, 2154.95508, -1426.99353, 292.72333, 0, 0, 316 , 2 ),
	createObject ( 2174, 2161.56738, -1420.58801, 292.73016 ,0, 0, 0, 2 ),
	createObject ( 1714, 2162.43555, -1421.32568, 292.73016, 0, 0, 193.997 , 2 ),
	createObject ( 2258, 2158.29688, -1420.09668, 294.74905 ,0, 0, 0, 2 ),
	createObject ( 2166, 2161.85645, -1429.56274, 292.73016, 0, 0, 180 , 2 ),
	createObject ( 2165, 2159.896, -1430.56165, 292.73016, 0, 0, 180 , 2 ),
	createObject ( 1703, 2160.84814, -1433.28442, 292.73016, 0, 0, 180 , 2 ),
	createObject ( 2202, 2139.76147, -1434.82886, 292.73016, 0, 0, 180 , 2 ),
	createObject ( 2162, 2156.5498, -1427.86914, 294.08716 ,0, 0, 0, 2 ),
	createObject ( 2010, 2154.9707, -1434.85791, 292.7298, 0, 0, 316 , 2 ),
	createObject ( 2254, 2144.48364, -1435.24292, 295.23151, 0, 0, 180 , 2 ),
	createObject ( 1714, 2159.46851, -1429.78394, 292.73016, 0, 0, 347.997 , 2 ),
	createObject ( 2165, 2143.11914, -1430.427, 292.73016, 0, 0, 270 , 2 ),
	createObject ( 2166, 2142.12183, -1428.47119, 292.73749, 0, 0, 270 , 2 ),
	createObject ( 2164, 2141.26245, -1435.19385, 292.73016, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2140.44263, -1429.17944, 292.73016, 0, 0, 277.997 , 2 ),
	createObject ( 1714, 2142.3916, -1430.8313, 292.73016, 0, 0, 79.747 , 2 ),
	createObject ( 1703, 2145.67505, -1429.40454, 292.73749, 0, 0, 270 , 2 ),
	createObject ( 2257, 2148.2771, -1416.18396, 295.00266, 0, 0, 90 , 2 ),
	createObject ( 2165, 2142.55664, -1424.43213, 292.73016, 0, 0, 359.995 , 2 ),
	createObject ( 2166, 2140.59937, -1425.42468, 292.73749, 0, 0, 359.995 , 2 ),
	createObject ( 2162, 2145.50952, -1427.49243, 294.4118, 0, 0, 180 , 2 ),
	createObject ( 1714, 2142.96533, -1425.16345, 292.73016, 0, 0, 167.992 , 2 ),
	createObject ( 1703, 2141.46924, -1421.64185, 292.73016 ,0, 0, 0, 2 ),
	createObject ( 2010, 2146.99805, -1420.7074, 292.72382, 0, 0, 312.75 , 2 ),
	createObject ( 2255, 2141.17603, -1426.97156, 294.64804, 0, 0, 180 , 2 ),
	createObject ( 1808, 2147.0625, -1435.05078, 292.73016, 0, 0, 179.995 , 2 ),
	createObject ( 2957, 2170.55225, -1432.96313, 282.13025, 0, 0, 90 , 2 ),
	createObject ( 2948, 2170.55859, -1431.83301, 280.5972 ,0, 0, 0, 2 ),
	createObject ( 2948, 2170.56738, -1433.75098, 280.5972, 0, 0, 179.995 , 2 ),
	createObject ( 1498, 2176.40039, -1424.28149, 284.40189 ,0, 0, 0, 2 ),
	createObject ( 1498, 2164.95264, -1433.49829, 286.40189, 0, 0, 90 , 2 ),
	createObject ( 1498, 2176.38599, -1424.68762, 290.19876 ,0, 0, 0, 2 ),
	createObject ( 1498, 2164.93506, -1433.7771, 292.19876, 0, 0, 90 , 2 ),
	createObject ( 1498, 2176.35352, -1425.09985, 296.00345 ,0, 0, 0, 2 ),
	createObject ( 3109, 2170.56152, -1433.2002, 299.19504, 0, 0, 179.995 , 2 ),
	createObject ( 1893, 2116.86621, -1447.05115, 294.39212 ,0, 0, 0, 2 ),
	createObject ( 1893, 2118.90894, -1447.04736, 294.39139 ,0, 0, 0, 2 ),
	createObject ( 1893, 2114.88672, -1447.04541, 294.39386 ,0, 0, 0, 2 ),
	createObject ( 18075, 2117.17749, -1444.90356, 294.52698, 0, 0, 270 , 2 ),
	createObject ( 2774, 2154.3623, -1416.67871, 284.72742 ,0, 0, 0, 2 ),
	createObject ( 2774, 2154.36377, -1418.32214, 284.72644 ,0, 0, 0, 2 ),
	createObject ( 14425, 2151.75171, -1448.24402, 296.94589, 0, 0, 180 , 2 ),
	createObject ( 2395, 2127.54004, -1449.75098, 290.39331, 0, 0, 90 , 2 ),
	createObject ( 2395, 2127.54004, -1446.02148, 290.3924, 0, 0, 90 , 2 ),
	createObject ( 2395, 2127.54492, -1442.29492, 290.3905, 0, 0, 90 , 2 ),
	createObject ( 2395, 2127.54492, -1438.56445, 290.39307, 0, 0, 90 , 2 ),
	createObject ( 7022, 2143.61719, -1424.88477, 301.22958, 0, 179.995, 269.989 , 2 ),
	createObject ( 8262, 2124.36719, -1513.21021, 299.2496, 0, 270, 0 , 2 ),
	createObject ( 1536, 2121.41333, -1461.3136, 299.61853, 0, 0, 270 , 2 ),
	createObject ( 1536, 2121.45117, -1464.33203, 299.61957, 0, 0, 89.747 , 2 ),
	createObject ( 1536, 2121.41479, -1449.31287, 299.61929, 0, 0, 270 , 2 ),
	createObject ( 1536, 2121.41406, -1437.31152, 299.61447, 0, 0, 270 , 2 ),
	createObject ( 1536, 2121.45532, -1452.33093, 299.61694, 0, 0, 90.247 , 2 ),
	createObject ( 1536, 2121.4519, -1440.33167, 299.61542, 0, 0, 89.997 , 2 ),
	createObject ( 10270, -1252.17371, -416.18549, 19.56564 ,0, 0, 0, 2 ),
	createObject ( 2637, 2120.24121, -1446.46362, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2118.29297, -1447.56702, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2116.34741, -1447.56763, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2114.40356, -1447.57336, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 2637, 2114.40454, -1446.46643, 290.83066 ,0, 0, 0, 2 ),
	createObject ( 1714, 2113.99609, -1445.46619, 290.4259, 0, 0, 359.997 , 2 ),
	createObject ( 1714, 2115.33228, -1445.45435, 290.4259, 0, 0, 359.995 , 2 ),
	createObject ( 1714, 2116.65552, -1445.453, 290.4259, 0, 0, 359.995 , 2 ),
	createObject ( 1714, 2117.96558, -1445.45508, 290.4259, 0, 0, 359.995 , 2 ),
	createObject ( 1714, 2119.25854, -1445.48621, 290.4259, 0, 0, 359.995 , 2 ),
	createObject ( 1714, 2120.60962, -1445.50085, 290.4259, 0, 0, 359.995 , 2 ),
	createObject ( 1714, 2121.64648, -1446.32666, 290.4259, 0, 0, 269.995 , 2 ),
	createObject ( 1714, 2113.97534, -1448.5293, 290.4259, 0, 0, 180 , 2 ),
	createObject ( 1714, 2115.2981, -1448.53308, 290.4259, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2116.62964, -1448.52405, 290.4259, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2117.92432, -1448.53125, 290.4259, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2119.22925, -1448.53955, 290.4259, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2120.57275, -1448.52954, 290.4259, 0, 0, 179.995 , 2 ),
	createObject ( 1714, 2121.63647, -1447.68298, 290.4259, 0, 0, 269.989 , 2 ),
	createObject ( 1714, 2112.99829, -1446.37964, 290.4259, 0, 0, 89.989 , 2 ),
	createObject ( 1714, 2113.00635, -1447.57056, 290.4259, 0, 0, 89.989 , 2 ),
	createObject ( 3858, 2116.16016, -1443.71387, 293.07062, 0, 0, 44.995 , 2 ),
	createObject ( 1536, 2123, -1477.80005, 299.60001, 0, 0, 359.747 , 2 ),
	createObject ( 1536, 2122.97949, -1476.84009, 299.62427, 0, 0, 359.747 , 2 ),
	createObject ( 1536, 2126, -1476.83728, 299.6192, 0, 0, 179.747 , 2 ),
	createObject ( 1536, 2125.99414, -1436.75818, 299.61774, 0, 0, 179.747 , 2 ),
	createObject ( 1536, 2122.97656, -1436.77686, 299.62061, 0, 0, 359.747 , 2 ),
	createObject ( 1536, 2127.58887, -1472.33142, 299.61838, 0, 0, 89.747 , 2 ),
	createObject ( 1536, 2127.59253, -1460.33215, 299.61081, 0, 0, 89.747 , 2 ),
	createObject ( 1536, 2127.63354, -1448.33374, 299.6091, 0, 0, 89.747 , 2 ),
	createObject ( 1536, 2127.58862, -1445.3114, 299.61819, 0, 0, 270.497 , 2 ),
	createObject ( 1536, 2127.56274, -1457.3125, 299.61322, 0, 0, 270.494 , 2 ),
	createObject ( 1536, 2127.53662, -1469.31323, 299.63422, 0, 0, 270.494 , 2 ),
	createObject ( 7022, 2105.43799, -1488.9104, 300.47443, 0, 180, 90 , 2 ),
	createObject ( 2774, 2151.94873, -1437.90662, 284.69977 ,0, 0, 0, 2 ),
	createObject ( 2774, 2150.46289, -1437.90479, 284.70175 ,0, 0, 0, 2 ),
	createObject ( 3051, 2151.78027, -1437.06372, 294.08762, 0, 0, 315.997 , 2 ),
	createObject ( 3051, 2150.58691, -1437.06128, 294.08762, 0, 0, 316.244 , 2 ),
	createObject ( 10184, 2168.15381, -1435.78992, 292.98639, 90, 0, 270 , 2 )
}

local col = createColSphere(2168.15381, -1435.78992, 292.98639,1000)
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 index, object in ipairs ( objects ) do
    setElementDoubleSided ( object, true )
	--setElementCollisionsEnabled ( object, true )
end
