To obtain the stun gun in True Crime, visit the armory at the police station. If your character has reached a sufficiently high rank, the weapon should become available for purchase. Progressing through the game’s police-related content is usually the key to unlocking it.