Heat sinks are your friend. It'll force them to lose lock. With other ships in the area, it might even get them to move to someone else. It works like that in CZs as well.
Note: It won't prevent them from scanning you if they're really close, but with some distance it will force them to lose lock. With enough launchers, you can chain fire them and prevent any scans while you lazily dock your Anaconda (or even Type 9) full of smuggled goods. Military Outpost tested and approved.
You're welcome.
NPCs do not play like players. There is no such thing as a game with perfect AI. In fact atrocious AI is the norm of video games.
That being said, it is easy to avoid being scanned by the npc cops in elite. You just need a bit of knowledge of how to do it.
Heat sinks dont do anything. Yesterday i got scanned WHILE in silent running, WHILE at 0 heat (heat sink enabled), WHILE chaff is running, and at 4K away.
The npcs in the game are a joke.
Easy eh? Enlighten us what to do boss.