I think that there's something like that, but it only works on small ships (M3-M5, TS), and if you get near a big ship or a station, it'll stop working. This has been brought up in discussion for the X2: Pandora project, but I'm not entirely sure if it'll work like it does in X3.
Check the community mods and scripts thread, that's where I found it a while back......not sure if it's still there though.
Join the X2: Pandora mod forum (www.x2-pandora.de) and mention it there. We are talking about many different scripts that will be added into the mod, not to mention the fact that there will be a whole bunch of beautiful and badass ships, so check it out!
You sure can join (you don't need to join to post there). But don't expect to get a script like this in the near future. We're really busy writing the needed scripts for Pandora. There's no spare time to make something that's not directly needed. But anyway, you're always welcome to suggestions.