TMZ reports that YG's California home was raided which led to the subsequent arrest of four men believed to be connected with the deadly shootout which an SUV registered to YG was implicated. The shots came from inside the SUV on July 3rd which wounded a deputy and left an innocent bystander dead. 

YG was adamant about not being involved in the situation, stating:

"I was nowhere near the scene of this incident and had been in a recording studio all day in Hollywood. I was there until after midnight on the 4th of July and didn't learn of these events until after they happened."

Source: tmz.com