I was in my car, getting ready to leave a parking lot when a police officer pulled up. He stated that there was a call that someone was smoking marijuana at the park. I said I was just playing bball. He asked me for ID and I gave him my license. He came back and asked me to step out of the vehicle (nothing illegal in plain sight). I asked him if I was being detained and he said yes. I asked "why?". He told me to just get out of the car. I asked once more (I was in a rush) why I was being detained when he opened my door and pulled out his taser, fired it up and threatened me. He pulled me out of my car, handcuffed me, and arrested me for resisting arrest. He then searched my car and found Codeine. Since it was not a traffic stop, did he have the right to tell me to step out of the vehicle?