function onClientPlayerWeaponFireFunc ( weapon, ammo, ammoInClip, x, y, z, hitElement )
if ( weapon == 23 ) then
local sound = playSound3D ( "Taser.wav", x, y, z, false )
setSoundVolume ( sound, 1 )
setSoundMaxDistance ( sound, 10 )
setSoundVolume ( sound, 3 )
setSoundMaxDistance ( sound, 100 )
setElementInterior ( sound, 0 )
setElementDimension ( sound, 0 )
end
end
addEventHandler ( "onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc )