It’s a law in texas that a cop can order you to put out a cigarette for any reason???
that’s news
Yes, it is considered a lawful order because it does not violate any civil rights or TX law. It is commonly done for officer safety or for investigative reasons.
A police officer can also require that you get out of your car for any reason. Again, this can be for officer safety or for investigative reasons. A lot of cops do it so that they are not in traffic.