module Base
{
	template vehicle M911TrunkCompartment
	{
		part M911Trunk
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 30,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		part M911Toolbox
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 10,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		part TruckBed
		{
			category = nodisplay,
			itemType = nil,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
                create = DAMN.Create.Blank,
			}
		}
	}

    template vehicle M127TrunkCompartment
	{
		part M127TrunkFront
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 650,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

        part M127TrunkRear
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 650,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
    }

    template vehicle M128TrunkCompartment
	{
		part M128Trunk
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 1000,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
    }

    template vehicle M129TrunkCompartment
	{
		part M129Trunk
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 900,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
    }

    template vehicle M747TrunkCompartment
	{
		part M747Trunk
		{
			category = bodywork,
			area = TruckBed,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
            durability = 5,
			container
			{
                capacity = 1000,
				conditionAffectsCapacity = false,
				test = Vehicles.ContainerAccess.TruckBed,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
    }
}