addEventHandler("onClientPlayerWeaponFire", root,
function ( weapon)
if weapon == 34 then
local x,y,z = getElementPosition(localPlayer)
local sound = playSound3D("sounds/sound027.wav", x,y,z)
setSoundMaxDistance(sound,75)
end
end
)
Why doesn't this work? If i shoot with the weapon 34 (sniper) nothing happens. I have the sound027.wav in the sounds folder in the resource's folder. I also added it to meta.xml.
edit: the mta volume was on 0.......