John Shearer / Invision/AP 1 / 3
John Shearer / Invision/AP 1 / 3

Troubled rapper Gucci Mane has spent 10 years battling an addiction to cough syrup and has finally admitted he needs to go to rehab.

RELATED: How is Zac Efron doing after rehab?

The hip-hop star's erratic behavior has hit headlines over the last few weeks, and he was most recently arrested in Atlanta earlier this month after an associate allegedly called cops and voiced concerns about the rapper's antics.

Mane, whose real name is Radric Davis, was detained after allegedly threatening officers, who claimed to have found him in possession of a gun and a small amount of marijuana, and he has now issued a statement revealing he has been struggling with an addiction to prescription cough syrup, which is mixed with soft drinks and nicknamed "lean" or "purple drank."

The 33-year-old, who remains in custody, insists he is now ready to seek help and hopes to start a rehab stint soon.

RELATED: Rehabbed stars

In the statement, posted to his Twitter account, he says, "Woke up the other day out this hospital bed & I'm so embarrassed & ashamed of my behavior that was brought to my attention. I just wanna man up right now & take this time to apologize to my family, friends, the industry & most of all my fans. I'm sorry! I've been drinking lean for 10 plus years & I must admit it has destroyed me. I wanna be the first rapper to admit I'm addicted to lean & that [expletive] ain't no joke. I can barely remember all the things I've done & said. However there's no excuse.

"I'm currently incarcerated but I will be going to rehab because I need help. I wanna thank everyone that has stood by me during this difficult time. Please keep me in your prayers."

Gucci Mane also issued an apology to stars including Drake, Rick Ross and Bryan "Birdman" Williams, who he recently blasted in a bizarre Twitter rant, adding, "I wanna personally apologize to BirdMan, Ross & Drake.... I 100 Per Cent Regret My Words & Actions."

RELATED: LeAnn Rimes opens up about rehab

Rapper Nicki Minaj was also targeted in Gucci Mane's Twitter meltdown and she subsequently urged the star to seek professional help, writing in a post on the social networking website, "I'm praying 4 (for) him. 4real (sic). He's sick and in dire need of rehab."