According to this interview featuring Death Row Records' former Chief Engineer Rick Clifford, the late rapper was apparently being considered for a role in the 1999 "Star Wars" film:
"It's sad because 'Pac found out that I worked for Brian Austin Green, who was on '90210,' then he found out I was in some movies. So we always talked about his film career and stuff," Clifford said in the interview. "He was telling me that he was supposed to read for George Lucas and them."
Clifford had worked with Tupac shortly before his death in 1996 at the age of 25. This was three years before the release of "The Phantom Menace."

As for what role Tupac would have played in the film, Clifford claimed they wanted him to be Mace Windu, a Jedi Master on the High Council. Samuel L. Jackson ended up getting the part.