CNN

A woman apparently took an extreme measure to try to quit smoking, and it got her arrested.

Etta Lopez, 31, is charged with assaulting a police officer.

"It was totally unprovoked," Deputy Matt Campoy said. Out of nowhere, a woman purposefully blocked his way as he left his shift at the Sacramento County Jail.

"All of a sudden she stepped into me and slapped me in the face," he said.

According to deputies, Lopez knew she'd immediately be arrested, and slapped a cop to kick a habit.

Lopez allegedly admitted she sat in front of the county jail for hours intent on assaulting an officer to get arrested and be put in jail, where she would be forced to stop smoking cigarettes.