kowalski Posted April 17, 2020 Share Posted April 17, 2020 The following should prevent a gun from firing thanks to cancel event. function lockGun() outputChatBox("Lock") cancelEvent() end addEventHandler("onClientPlayerWeaponFire",root,lockGun) For one reason or another that does not seem to be the case. Link to comment
Spakye Posted April 17, 2020 Share Posted April 17, 2020 did you place it client side ? Link to comment
kowalski Posted April 18, 2020 Author Share Posted April 18, 2020 Yes however I would appear that cancel event is more or less ineffective Link to comment
kowalski Posted April 18, 2020 Author Share Posted April 18, 2020 Thanks it seems that some functions tend to hide on the wiki Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now