The officer was off-duty and working security at an apartment complex on Perthshire, when a woman said her apartment was being broken into.
After spotting the trio, the officer gave chase and that's when police say one of the suspects leaned out of their car and fired at the officer. No one was hit.
Police tracked them down a few blocks away near Highway 6 and War Memorial, taking them into custody.
The driver and the person who fired the gun now face charges.