The purpose of this research study is to see whether taking the medication Cariprazine affects drug use in people with opioid and cocaine use disorder. We'd also like to understand whether certain mental processes (inhibition, memory, decision-making, reward, pain sensitivity, etc.) can predict drug use and whether treatment with Cariprazine impacts these processes.