The Game has pleaded no contest to a felony charge of possession of a firearm in a school zone.
After he entered his plea, a Los Angeles County judge immediately sentenced him to 60 days in jail, 150 hours of community service and three years probation.
The rapper, whose real name is Jayceon Taylor, faced three felony counts for making criminal threats and exhibiting a firearm in the presence of a peace officer. Two counts were dismissed as part of a plea agreement.
He has until March 3 to turn himself in.