Dolinho Posted May 26, 2015 Posted May 26, 2015 because this resource does not works. I already did everything for this to work well, someone help me? addEventHandler( "onWeaponFire", root, function () if ( isElement( source ) ) and ( getElementType( source ) == "player" ) then outputChatBox( "You fired a weapon!", source, 0, 225, 0 ) end end )
Walid Posted May 26, 2015 Posted May 26, 2015 because this resource does not works.I already did everything for this to work well, someone help me? addEventHandler( "onWeaponFire", root, function () if ( isElement( source ) ) and ( getElementType( source ) == "player" ) then outputChatBox( "You fired a weapon!", source, 0, 225, 0 ) end end ) there is nothing wrong here.
Dolinho Posted May 26, 2015 Author Posted May 26, 2015 So when can I use my gun does not appear anything in the chat?
Walid Posted May 26, 2015 Posted May 26, 2015 So when can I use my gun does not appear anything in the chat? it's server side code check your meta.xml file
Dolinho Posted May 26, 2015 Author Posted May 26, 2015 is server.lua and the resource is working just onWeaponFire not work either.
n3wage Posted May 26, 2015 Posted May 26, 2015 onWeaponFire: This event is triggered when a custom weapon gets fired.
xXMADEXx Posted May 27, 2015 Posted May 27, 2015 You'll probably need to make it as a client script so that you can use the onClientPlayerWeaponFire event.
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