Tory Lanez got busted after an alleged argument outside a house party led to cops finding a gun in his car, and Megan Thee Stallion was there too ... this according to law enforcement.

We've learned police got a call of a disturbance outside a Hollywood Hills residence around 4:30 AM Sunday. When officers arrived, we're told witnesses reported people were arguing in an SUV before someone fired shots in the air ... and the vehicle took off.

Our law enforcement sources say cops got a description of the SUV and located it shortly afterward, and found the rappers inside along with another woman.

We're told Meg had a cut on her foot believed to be from broken glass on the floor of the vehicle, and when cops searched it ... they found a gun.

Our sources say Lanez was taken to jail and booked for carrying a concealed weapon in a vehicle ... a felony.

Play video content

It's interesting ... earlier on Saturday night, Megan and Tory appeared together on her Instagram Live with Kylie Jenner -- at what appears to be a pool party at Kylie's Holmby Hills pad.

The reported gunshots were allegedly fired several miles away in the Hollywood Hills neighborhood.

We reached out to Tory and Megan ... no word back, so far.

tag