The I Changed My Mind singer shared the news with fans on Instagram over the weekend (19Dec15), when she reposted a photo director Benny Boom had posted online from the set of the new film, titled All Eyez On Me.
In the caption, she wrote, "So happy to announce I will be playing a part in this movie!!!!!!!!! #AllEyesOnMe #MyFirstMovieRole (sic)".
She went on to share hints about her character by adding, "#Playing my Girl from back in the day!!!! Her name is #Queen!!!! Don't mind playing a gangsta. #FULLCircle!!!!! #SheKnewMeAsAChild (sic)".
Meanwhile, it has been revealed the role of Tupac will be portrayed by newcomer Demetrius Shipp, Jr., who bears an uncanny likeness to the late hip-hop star.
CSI: NY actor Hill Harper broke the casting news to fans online last week (ends18Dec15), when he shared a collage of snaps of himself and his co-star onset on social media.
He captioned the image, "Shooting #alleyezonme My brotha from anotha (sic) @dshippjraeome throwin' it down as #Pac!!!"
Tupac was portrayed by Marcc Rose in the recent N.W.A biopic, Straight Outta Compton.
The rap star was killed in a drive-by shooting in Las Vegas in 1996.