Taking illegal drugs or controlled substances, Taking legal prescription medications, Taking over-the-counter drugs. Further, taking prescription medications or over-the-counter drugs such as muscle relaxants, cold or cough medicine, painkillers, anxiety medication, can result in a drug DUI prosecution. It is also important to note that a DUI can result even if a doctor has prescribed the drug if the medication was causing impaired driving.