Mariska Hargitay lost it on the NYC set of “Law & Order: SVU” last week.

“They were shooting on Ninth Avenue, and she was yelling, ‘Did you get that?’ to a crew member. The guy responded, ‘No,’ and she went apes - - t,” a spy said.

“She was saying, ‘When I do these, you have to make sure you get this.’ She was in a full NYPD police vest and was running down the street out of nowhere yelling at this guy.”

A source close to the show, however, told us, “It’s her on-set shtick. This is her joking around with the camera guys . . . They’ve been working together for 18 years.”

This article originally appeared in the New York Post's Page Six.