module Base
{
    model 69chargerDemonStrapL
	{
		mesh = vehicles/Vehicles_69charger_Body|demon_strap,
		texture = Vehicles/Vehicles_69charger_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
    model 69chargerDemonStrapR
	{
		mesh = vehicles/Vehicles_69charger_Body|demon_strap,
		texture = Vehicles/Vehicles_69charger_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
        invertX = TRUE,
	}

	template vehicle CHR69SpareTire
		{
		part DAMNSpareTire
        	{
				area = TruckBed,
				category = tire,
				specificItem = false,
				itemType = Base.69chargerTire3;Base.moparMagnum500TAtire3;damnCraft.SmallTire1,
				mechanicRequireKey = false,
                durability = 3,

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

                	time = 500,
                	skills = Mechanics:1,
                    door = TrunkDoor,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = CHR69.InstallComplete.SpareTire,
            		}

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

					time = 750,
					skills = Mechanics:1,
					recipes = Intermediate Mechanics,
		            test = DAMN.UninstallTest.Default,
		            complete = CHR69.UninstallComplete.SpareTire,
            		}

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

    template vehicle CHR69SpareTiresD
		{
		part DAMNSpareTire
        	{
                model spareL
            {
                file = 69chargerWheel4L,
                offset = 0.2444 0.3000 -1.9728,
                rotate = 0.0000 0.0000 0.0000,
            }

                model strapL
                {
                    file = 69chargerDemonStrapL,
                }

				area = TruckBed,
				category = tire,
				specificItem = false,
				itemType = Base.69chargerDemonTire2,
				mechanicRequireKey = false,
                durability = 3,

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

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

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

					time = 750,
					skills = Mechanics:1,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
		            complete = Vehicles.UninstallComplete.Default,
            		}

            		lua
            		{
						create = Vehicles.Create.Default,
					}
			}

            part DAMNSpareTire2
        	{
                model spareR
                {
                    file = 69chargerWheel4L,
                    offset = -0.2444 0.3000 -1.9728,
                    rotate = 0.0000 0.0000 0.0000,
                }

                model 69chargerDemonStrapR
                {
                    file = 69chargerDemonStrapR,
                }

				area = TruckBed,
				category = tire,
				specificItem = false,
				itemType = Base.69chargerDemonTire2,
				mechanicRequireKey = false,
                durability = 3,

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

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

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

					time = 750,
					skills = Mechanics:1,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
		            complete = Vehicles.UninstallComplete.Default,
            		}

            		lua
            		{
						create = Vehicles.Create.Default,
					}
			}
	}		
}
