A Central Texas man with an unwholesome affinity for vegetables will be spending the rest of his life behind bars.

Charles Ransier (Comal County Sheriff's Office)

Charles Robert Ransier, 56, of New Braunfels was sentenced Wednesday to life in prison on charges of tampering with evidence and drug possession.

Prosecutors urged jurors to impose a stiff sentence, presenting evidence that Ransier deserved harsher punishment because he previously had been convicted of nine felony offenses.

Ransier had a meth-filled syringe in his hand when a state trooper came across him sitting near a truck on the side of Interstate 35 on March 23, 2015, the Austin American-Statesman reports. The trooper could see a tube of lubricant inside the vehicle and a girl's swimsuit "laid out perfectly" on the floorboard.

Ransier — who was wearing only jeans and had melted wax on his chest — struggled when the trooper asked to search the vehicle, but he was eventually placed in handcuffs. He reportedly tried to break the syringe during the scuffle.

Then authorities gave the truck a thorough search.

They found a baffling array of items. In alphabetical order: baby oil, balloons, Barbie dolls, candy, children's clothes, duct tape, Extenze "male-enhancement" pills, rope and Viagra.

There was also a cooler full of frozen cucumbers.

The 2015 incident wasn't the first time Ransier had been apprehended while possessing produce.

In March 2014, the Comal County district attorney's office said, authorities were called to baseball fields in New Braunfels and found Ransier, clad only in women's stockings, "engaging in a deviant sex act" with a vegetable.

Two years earlier, Ransier was found naked along a New Braunfels road and told responding officers that he'd committed a sex act "involving a squash."

Ransier had been convicted of nine previous felonies.

He was convicted in 1995 of manslaughter in the death of an Arizona state trooper and sentenced to 15 years in prison. Authorities said he was driving while high on meth when he struck Sgt. Mark Dyer, who had stopped a speeding motorist on the side of Interstate 10.

Ransier was sentenced to life in prison on the evidence-tampering charge and 20 years in prison for the drug charge. He was also fined $10,000.