module Base
{

	model 86oshkoshP19Aroofrack1
	{
		mesh = vehicles/Vehicles_86oshkoshP19A_Body|p19a_roofrack1,
		texture = vehicles/Vehicles_86oshkoshP19A_Wheel_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}

	template vehicle P19ARoofrackCompartment
	{
		part P19ARoofrack
		{

			model Roofrack1
				{
                		file = 86oshkoshP19Aroofrack1,
				}

			category = bodywork,
			area = Roofrack,
			specificItem = false,
			itemType = Base.P19ARoofrack,
			mechanicRequireKey = false,
            durability = 3,
			repairMechanic = true,
			container
			{
				conditionAffectsCapacity = false,
				test = DAMN.ContainerAccess.Roofrack,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Wrench,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

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

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

            }

            	lua
            	{
				create = P19A.Create.Roofrack,
				init = P19A.Init.Roofrack,
				}
		}
	}
}

