Mr.unpredictable. Posted March 14, 2015 Share Posted March 14, 2015 I'm not able to make vehicle damage proof with rocket launcher This is not making vehicles damage proofs with rocket laucher function nofakingvehdamagewithrocket(attacker, weapon, loss, x, y, z, tyre) if (weapon == 35) then ---- rocket id cancelEvent() end end addEventHandler("onClientVehicleDamage", root, nofakingvehdamagewithrocket) But it works with M4 function nofakingvehdamagewithm4(attacker, weapon, loss, x, y, z, tyre) if (weapon == 31) then ---- m4 id cancelEvent() end end addEventHandler("onClientVehicleDamage", root, nofakingvehdamagewithm4) and when i make vehicles damage proof with all weapon it works even with rocket launcher function fakyu(attacker, weapon, loss, x, y, z, tyre) if (weapon) then cancelEvent() end end addEventHandler("onClientVehicleDamage", root, fakyu) Link to comment
TAPL Posted March 14, 2015 Share Posted March 14, 2015 Use outputChatBox to see what the id of 'rocket launcher '. rocket is projectile, it has different id here: https://wiki.multitheftauto.com/wiki/CreateProjectile Link to comment
Mr.unpredictable. Posted March 14, 2015 Author Share Posted March 14, 2015 Use outputChatBox to see what the id of 'rocket launcher '.rocket is projectile, it has different id here: https://wiki.multitheftauto.com/wiki/CreateProjectile ahhh ok, Got it thanks 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