It was a pot head’s dream: Free marijuana lying on the street for the taking, without a cop in sight.

San Jose police say a truck illegally carrying marijuana crashed and ended up on its side near Oakridge Mall early Wednesday, sending large bags of pot throughout the intersection as the frightened driver ran away.

Several motorists and pedestrians who happened to be passing through the area ran out and grabbed most of the marijuana bags and took off before police arrived.

Officers eventually collected the remaining bags of weed left at the scene and also found a loaded handgun inside the white truck. They’re still looking for the driver and all the people who snatched up the loose bags of pot and don’t have any suspect descriptions.

It’s unclear how the truck crashed at Blossom Hill Road and Playa Del Rey in South San Jose at 12:50 a.m. But there were no other vehicles involved in the crash, which ended with the truck landing on its side in the middle of the intersection.

Contact Mike Rosenberg at 408-920-5705.