(CNN) An Indiana state representative was charged with drunken driving and impersonating an officer after he tried to buy cocaine "party favors" at a local bar, court documents show.

Democratic lawmaker Dan Forestal, 36, was elected in 2012. He was charged with one count of operating a vehicle while intoxicated, resisting law enforcement and impersonating a public servant, the Marion County Sheriff's Department said Thursday.

His encounter with real officers happened Saturday night, after a resident called 911 to report someone impersonating an officer in in Indianapolis.

Forestal told the person he's an officer doing a drug bust in the area, a probable cause affidavit says. He allegedly asked where the "people selling drugs" lived and flashed a badge on a silver chain.

When officers arrived, they found him in his car. He held onto the steering wheel and refused to step out, and was handcuffed after a brief struggle, the probable cause affidavit says.

Read More