6ix9ine will have to undergo mandatory drug and mental health treatment after he's released from prison.