While debugging the OnPlayerWeaponShot event I noticed it was called twice when I hit an NPC. Don't think this should be the case.
Edit: I should specify it's the server event that gets called twice. Here's my debugger:
Code:
AddEvent("OnPlayerWeaponShot", function(player, weapon, hitType, hitId, hitX, hitY, hitZ, startX, startY, normalX, normalY, normalZ) if hitType == 4 then AddPlayerChatAll("You have shot "..hitId.." with a "..weapon.." at: "..hitX.."(X)"..hitY.."(Y)"..hitZ.."(Z).") end end)
Comment