EXCLUSIVE

Mystikal Close to Getting Outta Prison on Bail ... If New Music Deal's a Go

Mystikal is THIS close to getting the money he needs to post bail and get out of prison while he waits for his rape case trial to begin ... thanks to friends and a record deal.

You may recall the rapper was booked in 2017 for first-degree rape and second-degree kidnapping after he turned himself in following a Louisiana woman who came forward.

He's been behind bars ever since (almost a year and a half), but people around him have recently rallied and he could be set free soon, pending his trial in May.

Mystikal's attorney, Joel Pearce, tells TMZ ... his client's friends and family have been raising money to help post the $3 million bail. But, what really helped is a new music deal.

Tim Yazbeck, another attorney for the rapper, tells TMZ ... Mystikal has a new record deal for 3 unreleased albums and he's hoping to get an advance within days.

Mystikal's legal team tells us they're confident he'll be out on bail by the end of next week.

Click here for info about our online advertising practices.