Jump to content

Aiming


DarkByte

Recommended Posts

Not working

lol it works but jr forgot lua tag xD

addEventHandler('onClientPlayerWeaponFire', localPlayer, function() 
if (not getControlState('aim_weapon')) then cancelEvent() end 
end( 

addEventHandler('onClientPlayerWeaponFire', localPlayer, function() 
if (not getControlState('aim_weapon')) then cancelEvent() end 
end) 

Still not working

Link to comment
  • Moderators
This event is called when a player fires a weapon.

onClientPlayerWeaponFire is triggers after the bullet has been fired, that's why there is no info on the wiki about cancelEvent.

And if it did, these parameters wouldn't make any sense:(hitX, hitY, hitZ, hitElement)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...