Dolinho Posted May 26, 2015 Share 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 ) Link to comment
Walid Posted May 26, 2015 Share 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. Link to comment
Dolinho Posted May 26, 2015 Author Share Posted May 26, 2015 So when can I use my gun does not appear anything in the chat? Link to comment
Walid Posted May 26, 2015 Share 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 Link to comment
Dolinho Posted May 26, 2015 Author Share Posted May 26, 2015 is server.lua and the resource is working just onWeaponFire not work either. Link to comment
n3wage Posted May 26, 2015 Share Posted May 26, 2015 onWeaponFire: This event is triggered when a custom weapon gets fired. Link to comment
xXMADEXx Posted May 27, 2015 Share Posted May 27, 2015 You'll probably need to make it as a client script so that you can use the onClientPlayerWeaponFire event. 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