LeBron James became the oldest player in NBA history to have a triple-double as the Lakers beat the Mavericks