Jump to content

Help pls


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...