Hit the brakes!
Sweety you can do this and hate to say it (an I know you don't want to hear it )but Mom and Ex are very wise. get help first. When you're using you're not yourself and your daughter deserves a WELL and COMPLETE, HEALTHY YOU. Most communities have free or low cost clinics. See a doctor and tell him/her you need help. See what suggestions they have. Salvation Army and by all means AA/NA...whatever you need. there are some VERY wise people in those rooms. and keep writing. you CAN do this and if you do, I can guarantee you much more peace and happiness than you ever had high. it's NOT easy but your deserve it. You daughter deserves to know her Daddy, too. Best wishes and sending you much love.