Anyone ever sue a city before?

will somebody please confirm this as true/false?

I thought if a cop told you to get out of the car you were required to do so.