A Beaumont man pleaded guilty to murder Tuesday rather than continue his trial for a 2021 shooting that killed a man at a traffic light, agreeing to a 40-year prison sentence that cannot be probated.