Someone I know got hooked on codeine after a back injury. They didn’t lose employment or any custodial rights; they just got help when they went to their GP. I’m not sure of any resources outside of going to a doctor, then again the doctor will probably be able to point you towards additional outlets for help. I hope this helps, and that you’re able to get better.