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. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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 Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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. The Ultimate Lua Tutorial! | MTA PHP SDK
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