Go to court (family court, family lawyer) and get sole custody of your daughter. Then any time that your ex wants to see her, it will have to be in supervised mode at a public place. See a family law lawyer ASAP.
At 13 she's old enough to decide which parent she wants to live with. I would go for full custody, also considering the drug abuse you may be able to petition for immediate custody claiming that the child is unsafe with her mother.