Dark RP Turret Entity

Hi I want to make a turret which is purchasable through entity’s in the f4 menu. This turret will shoot any player that passes by unless added to co-owner like on doors. Also want to add an on and off by holding e. Is this possible and how can I go about it?


I suggest downloading J.I. Industries addon. Its pretty cool. It has IFF tags which you can let people be added to the turret