Updated

Former NBA star Lamar Odom escaped injury when gunfire erupted between his pals and another group outside a Queens Hooters, police said.

The 38-year-old ex-husband of Khloé Kardashian and his pals were at an outdoor table of the Fresh Meadows Place eatery when members of his entourage got into a squabble with the other group at around 12:30 a.m. last Thursday.

Police said witnesses reported seeing a man from the other group pull out a handgun and fire several shots into the air before fleeing.

No one was struck, cops said, and Odom did not appear to be the intended target or involved in the dispute.

The retired Laker posted a message on Instagram about the scary incident.

“I want to let my fans know that I am OK. Thanks for your messages I will try to respond to as many fans I can,” he wrote.

“Just to share the ‘truth’ here with you all. I was near the scene when it just happened and not involved in any way! Thanks, Lamar Odom,” he added.

The South Jamaica native earlier posted a photo of himself posing with family members in his birthplace.

“Thanks Queens, I loved to be home for a bit spending time with my son, daughter and catching up with my childhood homies,” he wrote. “You guys will always be my HOME.”

Later, he posted another photo of himself in Amsterdam.

“The real man smiles in trouble, gathers strength from distress, and grows brave by self-reflection. – Thomas Paine,” he wrote in the caption.

Law enforcement sources told TMZ that police are searching for the shooter. No arrests have been made.

His attorney Saam Zangeneh told the site that Odom “is a law-abiding citizen and he did his best to answer all the questions the police had for him.”

The incident happened just days after Odom announced on Instagram that he is moving to China.

“Happy & proud to announce that I have a signed a global management contract with my new @NinetyPlusOfficial family,” he wrote in a since-deleted post along with an image of himself standing next to presumed business partners.

The company, according to its website, hosts concerts and music festivals and also manages intellectual property for entertainers.

“I feel so happy to be writing new episodes of my life in another country that’s so huge in basketball,” he wrote. “I am grateful to have you all as my supporting fans through my ups and downs.”

The ex-hoopster infamously was found unconscious at a Nevada brothel in November 2016. He fell into a coma for three days and eventually entered rehab for substance abuse in December 2016.

He officially severed ties with Kardashian after seven years of marriage at the end of 2016.

This story originally appeared in the New York Post.