DMXDMX is trying really hard to stay on the straight and narrow … and so far, so good. After making his return on the stage of the 2011 BET Hip Hop Awards, and doing a live interview on “106 & Park,” the rapper now says he’s kicked his drug habit.

X recently spoke to TMZ, who says after years of drug abuse (which resulting in multiple incarcerations), he’s finally kicked his addiction … and it’s his kids he thanks.

“Everyone was taking advantage of me with my finances, trying to put me in the direction to fail. I have 10 kids. I have to drive them in the right direction, so I let the cocaine go,” DMX said.

In addition to his kids, he says it was God who helped him through his hardships.

“I am on a spiritual road to do right in my life,” X continued. “I am leaving out all negativity and going to stay on the right road to positive.”

X’s pastor told TMZ that the rapper has made “a dramatic change” … and echoed DMX’s claims about giving up drugs.

“You see that the drugs and alcohol aren’t in his life.”