local objects = 
{
	--Maxime
	createObject(4832,1545.6000000,-2382.1000000,21.4000000,0.0000000,90.0000000,90.0000000, 47), --object(airtwer_las, 47), (1, 47),
	createObject(4832,1545.6000000,-2398.5000000,21.4000000,0.0000000,90.0000000,90.0000000, 47), --object(airtwer_las, 47), (2, 47),
	createObject(6189,1566.4000000,-2430.3000000,-1.9000000,0.0000000,0.0000000,0.0000000, 47), --object(gaz_pier1, 47), (1, 47),
	createObject(2606,1570.5500000,-2411.2500000,15.3000000,0.0000000,0.0000000,180.0000000, 47), --object(cj_police_counter2, 47), (1, 47),
	createObject(2434,1567.0650000,-2411.3200000,12.6000000,0.0000000,0.0000000,270.0000000, 47), --object(cj_ff_conter_2b, 47), (1, 47),
	createObject(2435,1573.6000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (1, 47),
	createObject(2435,1573.7000000,-2407.0000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(cj_ff_conter_2, 47), (2, 47),
	createObject(2435,1573.7000000,-2410.6000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(cj_ff_conter_2, 47), (3, 47),
	createObject(2435,1573.7000000,-2409.7000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(cj_ff_conter_2, 47), (4, 47),
	createObject(2435,1573.7000000,-2408.8000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(cj_ff_conter_2, 47), (5, 47),
	createObject(2435,1573.7000000,-2407.8990000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(cj_ff_conter_2, 47), (6, 47),
	createObject(2435,1572.7000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (7, 47),
	createObject(2435,1571.8000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (8, 47),
	createObject(2435,1570.9000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (9, 47),
	createObject(2435,1570.0000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (10, 47),
	createObject(2435,1569.1000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (11, 47),
	createObject(2435,1568.2000000,-2411.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (12, 47),
	createObject(2435,1567.0660000,-2408.5500000,12.6000000,0.0000000,0.0000000,269.9950000, 47), --object(cj_ff_conter_2, 47), (14, 47),
	createObject(2435,1573.6000000,-2411.5000000,16.1000000,0.0000000,180.0000000,0.0000000, 47), --object(cj_ff_conter_2, 47), (15, 47),
	createObject(2435,1572.7000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (16, 47),
	createObject(2435,1571.8000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (17, 47),
	createObject(2435,1570.9000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (18, 47),
	createObject(2435,1570.0000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (19, 47),
	createObject(2435,1569.1000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (20, 47),
	createObject(2369,1572.4000000,-2411.2000000,13.5160000,0.0000000,0.0000000,0.0000000, 47), --object(cj_till, 47), (1, 47),
	createObject(2631,1571.4000000,-2430.3000000,12.7000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_mat1, 47), (1, 47),
	createObject(2631,1571.4000000,-2424.8000000,12.7000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_mat1, 47), (2, 47),
	createObject(2632,1571.4000000,-2427.5000000,12.7000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_mat02, 47), (1, 47),
	createObject(2632,1571.4000000,-2422.0000000,12.7000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_mat02, 47), (2, 47),
	createObject(1942,1565.9000000,-2430.7000000,12.7000000,90.0000000,0.0000000,0.0000000, 47), --object(kg50, 47), (1, 47),
	createObject(1943,1565.9000000,-2430.7000000,13.0000000,90.0000000,0.0000000,0.0000000, 47), --object(kg20, 47), (2, 47),
	createObject(1233,1565.9000000,-2430.7000000,12.2000000,180.0000000,0.0000000,0.0000000, 47), --object(noparkingsign1, 47), (1, 47),
	createObject(1942,1565.9000000,-2430.7000000,12.8000000,90.0000000,0.0000000,0.0000000, 47), --object(kg50, 47), (2, 47),
	createObject(1942,1565.9000000,-2430.7000000,12.9000000,90.0000000,0.0000000,0.0000000, 47), --object(kg50, 47), (3, 47),
	createObject(1943,1565.9000000,-2430.7000000,13.1000000,90.0000000,0.0000000,0.0000000, 47), --object(kg20, 47), (3, 47),
	createObject(1943,1565.9000000,-2430.7000000,13.2000000,90.0000000,0.0000000,0.0000000, 47), --object(kg20, 47), (4, 47),
	createObject(2628,1566.7000000,-2425.8000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_bench2, 47), (1, 47),
	createObject(2628,1562.7000000,-2425.9000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_bench2, 47), (2, 47),
	createObject(2628,1564.7000000,-2425.8000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(gym_bench2, 47), (5, 47),
	createObject(2629,1563.8000000,-2430.6000000,12.6000000,0.0000000,0.0000000,180.0000000, 47), --object(gym_bench1, 47), (1, 47),
	createObject(2629,1561.4000000,-2430.6000000,12.6000000,0.0000000,0.0000000,179.9950000, 47), --object(gym_bench1, 47), (2, 47),
	createObject(2629,1558.8000000,-2430.6000000,12.6000000,0.0000000,0.0000000,179.9950000, 47), --object(gym_bench1, 47), (3, 47),
	createObject(2627,1557.1000000,-2426.5000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(gym_treadmill, 47), (1, 47),
	createObject(2627,1557.1000000,-2424.5000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(gym_treadmill, 47), (2, 47),
	createObject(2627,1557.1000000,-2422.3000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(gym_treadmill, 47), (3, 47),
	createObject(2627,1557.1000000,-2420.1000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(gym_treadmill, 47), (4, 47),
	createObject(14791,1564.4000000,-2419.2000000,13.7500000,0.0000000,0.0000000,0.0000000, 47), --object(a_vgsgymboxa, 47), (1, 47),
	createObject(2630,1557.1000000,-2415.3000000,12.6000000,0.0000000,0.0000000,270.0000000, 47), --object(gym_bike, 47), (1, 47),
	createObject(2630,1557.1000000,-2417.0000000,12.6000000,0.0000000,0.0000000,269.9950000, 47), --object(gym_bike, 47), (2, 47),
	createObject(2630,1557.1000000,-2413.5000000,12.6000000,0.0000000,0.0000000,269.9950000, 47), --object(gym_bike, 47), (4, 47),
	createObject(970,1572.0000000,-2414.2000000,13.0500000,0.0000000,0.0000000,0.0000000, 47), --object(fencesmallb, 47), (1, 47),
	createObject(1569,1574.0500000,-2412.3100000,12.6000000,0.0000000,0.0000000,270.0000000, 47), --object(adam_v_door, 47), (1, 47),
	createObject(2435,1567.0660000,-2409.4700000,12.6000000,0.0000000,0.0000000,269.9950000, 47), --object(cj_ff_conter_2, 47), (14, 47),
	createObject(2435,1568.2000000,-2411.5000000,16.1000000,0.0000000,179.9950000,0.0000000, 47), --object(cj_ff_conter_2, 47), (20, 47),
	createObject(2434,1567.2690000,-2411.5000000,16.1000000,180.0000000,0.0000000,180.0000000, 47), --object(cj_ff_conter_2b, 47), (1, 47),
	createObject(2435,1567.0660000,-2410.3970000,16.1000000,0.0000000,180.0000000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(2435,1567.0660000,-2409.4700000,16.1000000,0.0000000,179.9950000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(2435,1567.0660000,-2408.5500000,16.1000000,0.0000000,179.9950000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(2435,1567.0660000,-2407.6500000,16.1000000,0.0000000,179.9950000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(2435,1567.0660000,-2406.7500000,16.1000000,0.0000000,179.9950000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(970,1565.4000000,-2414.2000000,13.0500000,0.0000000,0.0000000,0.0000000, 47), --object(fencesmallb, 47), (1, 47),
	createObject(970,1561.3000000,-2414.2000000,13.0500000,0.0000000,0.0000000,0.0000000, 47), --object(fencesmallb, 47), (1, 47),
	createObject(970,1559.2000000,-2412.1490000,13.0500000,0.0000000,0.0000000,90.0000000, 47), --object(fencesmallb, 47), (1, 47),
	createObject(2452,1569.6000000,-2406.7000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_ff_fridge2, 47), (1, 47),
	createObject(2855,1567.4000000,-2411.3000000,13.5700000,0.0000000,0.0000000,0.0000000, 47), --object(gb_bedmags05, 47), (1, 47),
	createObject(1808,1563.9000000,-2406.5000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_watercooler2, 47), (1, 47),
	createObject(14846,1537.4000000,-2465.3000000,17.6000000,0.0000000,0.0000000,0.0000000, 47), --object(int_ppol, 47), (1, 47),
	createObject(14846,1571.0000000,-2466.4000000,17.6000000,0.0000000,0.0000000,0.0000000, 47), --object(int_ppol, 47), (2, 47),
	createObject(14667,1558.1000000,-2414.3000000,14.0500000,0.0000000,0.0000000,0.0000000, 47), --object(int_7_11a41, 47), (2, 47),
	createObject(3115,1567.0000000,-2476.2000000,18.7000000,90.0000000,0.0000000,0.0000000, 47), --object(carrier_lift1_sfse, 47), (1, 47),
	createObject(3115,1533.3000000,-2475.1000000,18.7000000,90.0000000,0.0000000,0.0000000, 47), --object(carrier_lift1_sfse, 47), (2, 47),
	createObject(2229,1560.3000000,-2406.3000000,12.5000000,0.0000000,0.0000000,0.0000000, 47), --object(swank_speaker, 47), (1, 47),
	createObject(2229,1571.2000000,-2406.3990000,12.5000000,0.0000000,0.0000000,0.0000000, 47), --object(swank_speaker, 47), (2, 47),
	createObject(2596,1568.1000000,-2406.5800000,14.8000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_sex_tv, 47), (1, 47),
	createObject(2596,1555.2000000,-2406.6000000,15.1000000,0.0000000,0.0000000,45.0000000, 47), --object(cj_sex_tv, 47), (2, 47),
	createObject(2596,1570.7000000,-2431.6000000,15.0000000,0.0000000,0.0000000,179.9950000, 47), --object(cj_sex_tv, 47), (3, 47),
	createObject(2596,1556.8000000,-2431.6000000,15.0000000,0.0000000,0.0000000,179.9950000, 47), --object(cj_sex_tv, 47), (4, 47),
	createObject(2435,1567.0660000,-2410.3970000,12.6000000,0.0000000,0.0000000,270.0000000, 47), --object(cj_ff_conter_2, 47), (13, 47),
	createObject(2876,1561.8000000,-2406.2500000,13.7500000,0.0000000,0.0000000,0.0000000, 47), --object(cj_pro_door_01, 47), (1, 47),
	createObject(2876,1564.6000000,-2406.2500000,13.7500000,0.0000000,0.0000000,0.0000000, 47), --object(cj_pro_door_01, 47), (2, 47),
	createObject(1727,1560.9000000,-2413.4000000,12.6000000,0.0000000,0.0000000,135.0000000, 47), --object(mrk_seating2b, 47), (1, 47),
	createObject(1727,1559.8000000,-2411.8000000,12.6000000,0.0000000,0.0000000,90.0000000, 47), --object(mrk_seating2b, 47), (2, 47),
	createObject(1726,1563.7000000,-2410.3000000,12.6000000,0.0000000,0.0000000,270.0000000, 47), --object(mrk_seating2, 47), (1, 47),
	createObject(1822,1561.3000000,-2412.1000000,12.6000000,0.0000000,0.0000000,0.0000000, 47), --object(coffee_swank_6, 47), (1, 47),
	createObject(2257,1573.9900000,-2418.2000000,14.3000000,0.0000000,0.0000000,270.0000000, 47), --object(frame_clip_4, 47), (1, 47),
	createObject(2257,1557.0000000,-2406.3200000,14.3000000,0.0000000,0.0000000,0.0000000, 47), --object(frame_clip_4, 47), (2, 47),
	createObject(2652,1573.4000000,-2415.3000000,13.1000000,0.0000000,0.0000000,0.0000000, 47), --object(cj_skate_cubes, 47), (1, 47),
	createObject(970,1559.2000000,-2408.0000000,13.0500000,0.0000000,0.0000000,90.0000000, 47), --object(fencesmallb, 47), (1, 47),
	createObject(2876,1566.9000000,-2476.5000000,16.3100000,0.0000000,0.0000000,0.0000000, 47), --object(cj_pro_door_01, 47), (3, 47),
	createObject(2876,1533.3000000,-2475.4000000,16.3100000,0.0000000,0.0000000,0.0000000, 47), --object(cj_pro_door_01) (4)

	--[[
	Objects converted: 91
	Vehicles converted: 0
	Vehicle models found: 0
	----------------------
	convertFFS converted your input in 0.03 seconds - Chuck Norris could have done it in 0.0004 seconds!
	--]]


}

local col = createColSphere( 1573.4541015625, -2413.10546875, 13.60781288147, 20)

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 )
	-- if getElementModel(object) == 10281 then
		-- setObjectScale ( object, 0.60000002384186  )
	-- end
	--setElementCollisionsEnabled ( object, true )
end




