As I have owned myself Freelancer server (not any mods, just tested having a server on lanparty with friends) and I did manage to check some files as you can make checks if person has some "ID" in his inventory to make it possible to mount specific weapons.
Example, if you have Police ID, you can't buy Liberty Rogue bomber. And if you unmount that ID and try to buy Liberty Rogue ID while having a Police ship, then it could say a warning or just not letting you to buy the ID. Same with mounted weapons, if you unmount an ID, then it could unmount the weapons aswell. Same with selling it.