Trick Daddy's taking a plea deal in his Miami bust for cocaine possession and driving under the influence, and now he's finally able to put the case behind him.
The District Attorney's Office tells us Trick cut a deal ... pleading guilty to possession of cocaine and getting credit for time served. In exchange, we're told the DUI charge was dropped.
We broke the story ... police bodycam footage from the rapper's January 2020 arrest showed a white powdery substance tucked away in a dollar bill. Cops also said he also bombed a field sobriety test, and the video shows him slurring his speech while playing the celeb card.
That didn't really help him, however there was only a trace amount of cocaine -- so he got a very low level, third-degree felony. The D.A. tells us he's not on probation, either ... the plea deal closes case.
Trick's attorney Harris Gilbert tells TMZ ... "As part of the plea he was also able to give back to the community he loves so much with a donation to Camillus House homeless shelter."