module Base
{

	model 82porsche911Roofrack0
	{
		mesh = vehicles/Vehicles_82porsche911_Body|small_roofrack,
		texture = Vehicles/Vehicles_70dodgeTA_Wheel_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}

	template vehicle PRS82Roofrack
	{
		part PRS82Roofrack
		{

			model Roofrack0
				{
                		file = 82porsche911Roofrack0,
				}

			category = Other,
			area = Roofrack,
			itemType = Base.OldSmallRoofrack,
			mechanicRequireKey = false,
            durability = 5,
			repairMechanic = true,
			container
			{
				conditionAffectsCapacity = false,
				test = DAMN.ContainerAccess.Roofrack,
			}

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Wrench,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 800,
                	skills = Mechanics:1,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = Vehicles.InstallComplete.Default,
            		}

            table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 800,
					skills = Mechanics:1,
					recipes = Intermediate Mechanics,
            		test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Default,
					requireEmpty = true,

            		}

            lua
            	{
					create = DAMN.Create.Blank,
				}
		}
	}

    template vehicle PRS82RoofrackTA
	{
		part PRS82Roofrack
		{

			model Roofrack0
				{
                		file = 82porsche911Roofrack0,
				}

			category = Other,
			area = Roofrack,
			itemType = Base.OldSmallRoofrack,
			mechanicRequireKey = false,
            durability = 5,
			repairMechanic = true,
			container
			{
				conditionAffectsCapacity = false,
				test = DAMN.ContainerAccess.Roofrack,
			}

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Wrench,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 800,
                	skills = Mechanics:1,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = Vehicles.InstallComplete.Default,
                    requireInstalled = PRS82Roof,
            		}

            table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 800,
					skills = Mechanics:1,
					recipes = Intermediate Mechanics,
            		test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Default,
					requireEmpty = true,

            		}

            lua
            	{
					create = DAMN.Create.Blank,
				}
		}
	}
}

