Is it possible, to use it with other taser-scripts like timertazer, so that the effect of beeing tazed is visible for the person, who is getting tazed?
Citizen.CreateThread(function()
while true do
Citizen.Wait(sleepPlayer)
local player, distance = ESX.Game.GetClosestPlayer()
if distance ~= -1 and distance <= 3.0 then
local id = GetPlayerServerId(player)
local ped = GetPlayerPed(player)
local coords = GetEntityCoords(ped)
for k,v in pairs(Players) do
sleepPlayer = 1
if id == k then
targetPlayer = id
DrawText3D(coords.x, coords.y, coords.z+0.20, STG.Locale[“remove”])
end
end
else
targetPlayer = nil
end
end
end)
client line 161/182
That is the problem when u use the Taser then ms go up and es_extended and not droping down.