A cop can't ask you if you want to buy though, they have to wait for you to ask them. At least that is how I understand it. I'm pretty sure if the cop is the one who offers with out you asking for it, that is entrapment.