I have blood comming from my rectum even when I go pee, also muscus discharge with a lot of gas.

See your doctor. Bright red blood points towards problems about the rectum and anus: hemorrhoids, fissures, proctitis. Darker blood may be due to pathology higher up: polyps, malignant growths. You need to see your doctor for proper evaluation: examination, scoping procedures.