The 30-year-old rapper — real name Radric Davis — appeared in a Georgia courtroom yesterday after filing a “Special Plea of Mental Incompetency” … in which he explained he was in no state to “intelligently participate in the probation revocation hearing.”

According to the document, the judge ordered Gucci into custody — and immediately committed the rapper into a mental health treatment facility pending an evaluation of his mental condition.

We’re told Gucci is currently at the treatment facility.

Gucci’s drug use is well documented and has frequently has landed them behind bars, so this isn’t too much of a stretch. His camp even tried to force him to go to rehab way before all this went down. I just hope he finally gets the help he needs this time…