Here is my Taser script that I am currently using. The script utilises inventories with hotbars and adds a taser cartridge item that is needed to reload the taser.
The Config:
Config.Cartridges = 2 - Shots players have before they need to reload.
Config.ReloadTime = 2 - In Seconds.
Config.CustomTime = true - If true you can keep players on the floor for a custom set time.
Config.Time = 20 - If the above is true please put how long you want the stun to last for (in seconds).
Preview:
Click Here If Preview Does Not Load
Dependencies:
I have built the script around okokNotify. This of course is not a free script but notifications can be easily implemented using native ESX ones.
Known Bugs: None currently.
Download on GitHub