The NYPD received a $20 million boost to its community-policing initiatives Monday, courtesy of foiled criminal activity in Queens.

The money is from asset forfeiture funds collected by the Queens District Attorney’s Office. The DA’s office is giving the dough to the department.

More than half the money will buy 264 new vehicles for precincts across Queens. Another $2.7 million will be used to purchase tablets for recruits and trainers.

The NYPD will also be buying automated external defibrillators, flashlights, training mats, license plate readers, and upgraded gun holsters, officials said.

“The principal use of the funds will be centered on enhancing [Police] Commissioner [James] O’Neill’s community-based policing strategies in all 16 Queens County police precincts,” Queens DA Richard Brown said.

“In essence, it heralds the return of a familiar figure – the cop on the beat who knows the people and the community he or she serves.”

O’Neill added, “Our probationary officers working their way through this academy will gain much through this funding, much will also go towards improving relationships between cops and the community in all corridors of this great city.”