The NBA may still be behind the NFL and Major League Baseball in terms of generating revenue, but thanks to skyrocketing TV contracts and smaller rosters, an NBA career can be quite lucrative.

This is especially true for the athletes who played a large chunk of their careers between the late 1990s and the 2011 lockout.

While many of the all-time greats of the past 20 years are among the highest paid of all time, these years also led to some large contracts for players who are not among the all-time greats.

Here is a look at the 25 players who have made at least $158 million, according to data collected from Spotrac and Basketball-Reference: