Law enforcement sources tell us Beverly Hills PD got a call Friday evening from someone claiming Ray J was causing a ruckus inside a bar at the Beverly Wilshire Hotel … and officers were dispatched.

We’re told hotel staff asked Ray J to leave, but he refused. TMZ obtained photos of officers on the scene questioning Ray and an unidentified woman … shortly before he was taken into custody — and we’re told he did not go quietly.

Once cuffed in the back seat of a patrol unit … Ray allegedly kicked out a window of the vehicle.

Right now Ray is getting booked by Bev Hills PD for trespassing, vandalism, resisting arrest, and battery … according to our sources.

It’s hard to make these things up folks. However, Ray J’s erratic behavior reared its ugly head as recently as a month ago, when he offered his earnings from his sex tape with Kim Kardashian as a wedding gift for the reality TV star and Kanye West. In other words, his arrest isn’t exactly surprising.