A New Jersey cabbie is being credited with helping to stop a shooting by tricking an enraged and armed teenager into thinking that he had “voodoo” powers that could make the boy vanish. The cabbie then called the police.

According to ABC News, the cabbie, who is an immigrant from Africa, may have thrarted a school shooting Thrusday when his call to the cops triggered a lockdown at Trenton Central High School, on Thursday.

Teachers turned off classroom lights and closed the doors as cops patrolled the hallways. The school has 2,100 students.

“The students, teachers, and school security were all very calm and everyone felt safe in the building. There were police officers every 50 feet,” said Principal Marc Maurice.

The suspect was found and arrested about 3:30 p.m. near the school. He was unarmed at the time, police said.

The cab driver told ABCNews.com that he picked up the teenager outside the school around 11 a.m. Thursday.

After stopping at the boy’s house, the suspect got back in with bloodshot eyes and shaking, pulling out a gun and saying he was going to kill classmates in the cafeteria.

“He asked me to take him to Martin Luther King Jr. Boulevard in Trenton (the student’s home) and that this would be a roundtrip back to the school,” said the driver, who requested anonymity because he fears for his safety.

The quick-thinking cabbie stayed calm, persuading the teen he’d been a rebel fighter and telling the boy if he could wait until 3 p.m., he’d give him medicine to make him “disappear.” It worked — not quite voodoo but pretty magical negotiating skill.

Trenton police confirmed the driver’s identity and his version of events.

The student, whose identity is being withheld because he is a minor, faces juvenile charges including unlawful possession of a shotgun and drug offenses.

What do you think of the cabbie Voodoo Trick?