Features
Add Glock Switch
Players can attach an auto sear (aka Glock Switch) to a Pistol. In order to ensure that the player doesn't lose any existing attachments, the script ensures that all attachments are removed before allowing the auto sear to be placed.
Remove Glock Switch
Players can also remove the Auto Sear. The script requires that the player have a lockpick in their inventory, although server administrators can change this required item to whatever you wish. In order to ensure that the player doesn't lose any existing attachments, the script ensures that all attachments are removed before taking the auto sear. After removing the auto sear, the script gives the normal pistol and auto sear item back to the player.
Serial Numbers
Serial numbers stay with the gun when adding and removing the auto sear.
Ammo
When adding the auto sear to a pistol, the amount of ammo inside the pistol will be transferred to the new weapon. When removing the auto sear from a weapon, the ammo will be unloaded from the weapon, and given back to the player. You can set your ammo item in the config.lua
file.