Cops are not stupid. Laws change yearly so it's likely they were right. You can possess a firearm loaded/unloaded as you please where ever you want inside your car without a permit. If you don't want to catch shit from a cop about it, get a licence or be cool about it if he asks. As long as you are lawfully allowed by federal law to possess it, what would you be worried about unless it was a stolen firearm.