module Base
{
	
    model 87fordF700mudflaps1
    {
        mesh = vehicles/Vehicles_87fordB700_Body|f700_mudflaps,
        texture = Vehicles/Vehicles_87fordB700_Interior3,
		shader = damn_wheel_shader,
        scale = 0.1,
    }

    model 87fordF700mudflaps2
    {
        mesh = vehicles/Vehicles_87fordB700_Body|f700x_mudflaps,
        texture = Vehicles/Vehicles_87fordB700_Interior5,
		shader = damn_wheel_shader,
        scale = 0.1,
    }

	template vehicle F700Mudflaps
		{
		part DAMNMudflaps
       		{

            model mudflaps1
			{
                	file = 87fordF700mudflaps1,
			}

            category = bodywork,
            area = TruckBed,
            itemType = Base.87fordF700MudflapsSmall,
            mechanicRequireKey = false,
            durability = 3,

            table install
            {
                items
                {
                    item
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 1000,
                skills = Mechanics:4,
                recipes = Advanced Mechanics,
                requireInstalled = TrunkDoor,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Default,
                
            }
            table uninstall
            {
                items
                {
                    item
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 1000,
                skills = Mechanics:4,
                recipes = Advanced Mechanics,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
	}

    template vehicle F700MudflapsB
	{
        template! = F700Mudflaps,

		part DAMNMudflaps
       		{

            model mudflaps1
			{
                	file = 87fordF700mudflaps1,
                    offset = 0.0000 -0.0400 0.0000,
			}
        }
	}

    template vehicle F700MudflapsX
		{
		part DAMNMudflaps
       		{

            model mudflaps1
			{
                	file = 87fordF700mudflaps2,
			}

            category = bodywork,
            area = TruckBed,
            itemType = Base.87fordF700MudflapsLarge,
            mechanicRequireKey = false,
            durability = 3,

            table install
            {
                items
                {
                    item
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 1000,
                skills = Mechanics:4,
                recipes = Advanced Mechanics,
                requireInstalled = TrunkDoor,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Default,
                
            }
            table uninstall
            {
                items
                {
                    item
                    {
                        tags = Wrench,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 1000,
                skills = Mechanics:4,
                recipes = Advanced Mechanics,
                test = Vehicles.UninstallTest.Default,
                complete = Vehicles.UninstallComplete.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
	}
}