local coef = 0.01
function test(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement, startX, startY, startZ)
if source ~= localPlayer then return end
setCameraTarget(hitX, hitY, hitZ + coef)
local rot = 360- getPedCameraRotation(localPlayer)
setPedCameraRotation ( localPlayer, rot + 0.5 )
end
addEventHandler("onClientPlayerWeaponFire", root, test)
Try this, its not neat, there is some math to do but its a start