New Jersey’s judiciary is helping the state police do background checks on gun-permit applicants who may be ineligible due to mental-health problems.

The Administrative Office of the Courts has handed over 413,000 records of people who have been involuntarily committed to a mental health institution or who have been found by a judge to be a danger to themselves or others, Chief Justice Stuart Rabner said Thursday.