One of the men accused of murdering rapper XXXTentacion may not be competent enough to stand trial, so a judge has ordered him to undergo a mental exam before they proceed with the case.

Earlier this month, Michael Boatwright was arrested for an unrelated drug charge but served with a warrant on July 10 for first-degree murder while in custody.

According to the Broward County Sheriff’s Office, Boatwright is one of the two armed suspects who confronted XXXTentacion outside Riva Motorsports.

Officials say they are still searching for the second gunman.

Recently, docs were filed in Boatwright’s criminal case revealing the judge has ordered him to undergo a mental examination to determine if he is competent enough to proceed with the case.

They want to determine if he can reasonably understand the charges he is facing, whether he understands the possible penalties, if he has the ability to behave himself in court, and whether he has the capacity to testify relevantly.

The judge appointed a doctor to complete the exam and if he is found to be incompetent to proceed, they may involuntarily hospitalize Boatwright. The doctor will be able to recommend treatment for possible mental illness or mental retardation, whether treatment will help and whether he can become competent with treatment.

According to court docs, the judge ordered the exam to be recorded on video and will be done by the end of the month.