Been having trouble going #2 every night I don't get sleep at all stomach cramps, pain lower right back nausea weakness bloated. Diet lactulose nogood?

It's time. To talk to your doctor. There are a significant amount of disorders that could cause these symptoms and this venue is so limited that i would strongly recommend a visit. Cou;d be very benign and easily treated, but then again it may not be...
Constipation. Do you drink at least a pint of water daily? Do you eat foods high in fiber like cheerios? Lactulose is an excellent laxative and should work. When nature calls answer the call asap. If all else fails please see your family doctor. You might need a colonoscopy..