module Base
{

	model 67gt500espare
	{
		mesh = vehicles/Vehicles_67gt500_Body|gt500e_tire_spare,
		texture = vehicles/Vehicles_67gt500e_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 67gt500spare
	{
		mesh = vehicles/Vehicles_67gt500_Body|gt500_tire_spare,
		texture = vehicles/Vehicles_67gt500_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 67gt500straps
	{
		mesh = vehicles/Vehicles_67gt500_Body|gt500_tire_straps,
		texture = vehicles/Vehicles_67gt500_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}

	
	template vehicle GT500SpareTire
	{
		part GT500SpareTire
        	{

			model GT500sSpare
				{
                		file = 67gt500spare,
				}
			model GT500eSpare
				{
                		file = 67gt500espare,
				}
			model GT500Straps
				{
                		file = 67gt500straps,
				}

			category = tire,
			area = TruckBed,
			itemType = Base.67gt500Tire;Base.67gt500eTire,
			mechanicRequireKey = false,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Wrench,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 750,
                	skills = Mechanics:1,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = GT500.InstallComplete.SpareTire,
                	requireInstalled = GT500WindshieldRearArmor,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

            		}

	            lua
	            {
				create = GT500.Create.SpareTire,
				init = GT500.Init.SpareTire,
				}
		}
	}
}

