Notice
If you are looking for support you should instead create a support ticket.
Optimize your addon
Function : player.GetAll (Wiki page : https://wiki.garrysmod.com/page/player/GetAll )
Hook : GM:PostDrawOpaqueRenderables (Wiki page : https://wiki.garrysmod.com/page/GM/PostDrawOpaqueRenderables )
File : addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua
└►Line #247-> 27241 calls
Call History
#1 File:addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua, Line #264
#2 File:addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua, Line #247
You don't need to call player.GetAll on each frame.
And yes i checked the code, and yes you can do it in much better ways than "scanning for player that got this weapon"

There would be another one soon. :D

an update after 2 years holy

my taser is an error ?

Is there any planned release for better aiming when hitting running targets?

@nissaN I may be late, but they are compatible. They actually work really good.

I personally didnt tested it together. Can't say for sure.

it's compatible? https://www.gmodstore.com/scripts/view/2979/v170-realistic-handcuffs-jailer-bailer

Yeah you gotta aim hard to hit the running target, yet it's possible. However we are planning to add a some kind of a simplifying feature.

Sadly a pretty bad addon...when people jum paround and run away its impossible to hit them, and even if you do finally, sometimes you cant taze them completley so tey can just keep run...

would be better to make the person pretty much ragdolled after being tazed

The taser isn't broken, there is a reason i'm co author. Been patching errors and reported bugs & so far as i know, the script is in a fully working condition.

An amazing stungun, sadly it is now broken

Is there a server running this i can test it on?

Hi Im a dev of a SWRP server, would I be able to change the model of this to another? (starwars pistol)?

Wow, CustomHQ is back xD

So I guess it added itself in my weapons category, can I remove that?

BakobGaming, Yes that is how it works. You cant move while being tazed, and if you gave someone a full charge he wont be able to move after too for some secs.

is it possible to make so the player cant move for 2 seconds when hes done being tazed

Are there any custom sound files for this script that aren't on the workshop? I noticed the workshop is only the models.

Thanks!

Welcome back Max!

is there a way to make it so that it doesn't create a weapon to buy (f4 menu)

That's good news