You did the only thing you could have done. What was she thinking? That you'd ignore her suicide text? And what's up with her dad and his apparent indifference to your daughter's safety and well-being??? Some really strange dysfunction going on there.
If your daughter is abusing drugs, you have probably lost her already . . . not to suicide but to addiction. Your ex may already know this, hence his reason for not jumping when he found out about her suicide threat. If I were you, I would start off by finding out where your nearest Alanon chapter is and start attending their meetings. You need to learn about the nature of the best of addiction and how to set healthy boundaries with your daughter and how to be there for her when she is ready to deal with her addiction issues. There will be parents there that are dealing with the same issues you may have to end up dealing with, with a lot more experience about the kind of drug and alcohol recovery programs are available in your area. Just some really good information to know.
I wish this was a case of your daughter was just experimenting with drugs and you happened to call the cops on that day, but I don't think it is. Your ex's reaction to your call and her behavior indicate that she probably has become more than a casual drug user by this point.
I'm sorry this is going on for you. I hope that you can get the help you need and your daughter back very soon.
Updated