Lopez put in 26 points while Williams provided 20 and 13 assists for the Nets, who notched their fourth win in five games.
Andray Blatche helped out with 18 points and MarShon Brooks added 14 as Brooklyn got back on the winning track following a Monday loss to Philadelphia.
The Hornets got 21 points from Eric Gordon but couldn't avoid their fourth straight road loss.
Anthony Davis contributed 17 points and 10 boards for New Orleans.
Ohio bar shooting arrested, charged with murder
McPhee, Cokas 'working on their marriage' after affair