Timer Tazer Effect

Hi everyone,

This is a simple script that gives a stunning effect when one is tazer.

Demonstration video: https://streamable.com/s48ds

DOWNLOAD

timertazer.rar (652 Bytes)

VIDEO

12 Likes

Nice Releas Man :wink:
This Was Good :smile:

That’s Awesome!

Nice :ok_hand:

Don’t you think the cop shouldn’t be get tazed but other way around? :thinking:

2 Likes

Logically it is the policeman who tamps and is tazer. Kappa
Here is the opposite for the test

This script is so simple but it makes the rp a lot better thanks m8

m8 ? thanks :smile:

Just a bit of performance change, aint a lot, but avoids calling the GetPlayerPed(-1) and only calls PlayerPedId() once, no reason to get it multiple times :slight_smile:

Ill test some more minor updates later, ex. saving the IsPedBeingStunned in a var, so it only needs to be called once every frame insted of 3 times :slight_smile:

local tiempo = 4000 -- 1000 ms = 1s
local isTaz = false
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		ped = PlayerPedId()
		
		if IsPedBeingStunned(ped) then
			
			SetPedToRagdoll(ped, 5000, 5000, 0, 0, 0, 0)
			
		end
		
		if IsPedBeingStunned(ped) and not isTaz then
			
			isTaz = true
			SetTimecycleModifier("REDMIST_blend")
			ShakeGameplayCam("FAMILY5_DRUG_TRIP_SHAKE", 1.0)
			
		elseif not IsPedBeingStunned(ped) and isTaz then
			isTaz = false
			Wait(5000)
			
			SetTimecycleModifier("hud_def_desat_Trevor")
			
			Wait(10000)
			
      		SetTimecycleModifier("")
			SetTransitionTimecycleModifier("")
			StopGameplayCamShaking()
		end
	end
end)
2 Likes

thank you!

Nice man :ok_hand:

Vrp or esx?

its a standalone

Cool script, thank you for saving some of my time! :smiley:

1 Like

is there any vids on how to install this??
Also this is a great thing dont know how to install it any1 have any vids

Very nice!

amazing!!

Thanks!

would it be possible to increase the time of the effect?
if yes, how would I got about doing so?

hello, you just have to modify the time according to your desire

local tiempo = 4000 --for four seconds
local tiempo = 5000 --for five seconds
local tiempo = 10000 --for ten seconds

to be replaced at line number 1