module Base
{
	model 88toyotaHiluxMudflapsFront
	{
		mesh = vehicles/Vehicles_88toyotaHilux_Body|88hilux_mudflaps_front,
		texture = Vehicles/Vehicles_88toyotaHilux_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}

    model 88toyotaHiluxMudflapsRear
	{
		mesh = vehicles/Vehicles_88toyotaHilux_Body|88hilux_mudflaps_rear,
		texture = Vehicles/Vehicles_88toyotaHilux_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}

	template vehicle HLX88MudflapsXC
		{
		part DAMNMudflaps
        	{

			model DAMNMudflapsF
				{
                	file = 88toyotaHiluxMudflapsFront,
				}
            model DAMNMudflapsR
				{
                	file = 88toyotaHiluxMudflapsRear,
				}

			category = Other,
			area = TireFrontRight,
			itemType = Base.88toyotaHiluxMudflaps,
			mechanicRequireKey = false,

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

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

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

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

            		}

            	lua
            		{
					create = HLX88.Create.Mudflaps,
					init = HLX88.Init.Mudflaps,
					}
		}
	}

    template vehicle HLX88MudflapsSC
	{
        template! = HLX88MudflapsXC,

		part DAMNMudflaps
        {

            model DAMNMudflapsR
			{
                file = 88toyotaHiluxMudflapsRear,
                offset = 0.0000 0.0000 0.4047,
				rotate = 0.0000 0.0000 0.0000,
			}
        }
    }

		
}
