Jump to content

How disable fire lid from rocket


Recommended Posts

I have no idea if it's even possible to stop fire from being created.

I'm also not sure if it's entirely possible to prevent fire damage, this code should do well - if not, it will at least protect from flame thrower damage.

addEventHandler("onClientPlayerDamage", localPlayer,  
  function(attacker, weapon, bodypart, loss) 
    if weapon == 37 then --assuming that you can use 'Burnt' death cause on onClientPlayerDamage 
      cancelEvent() 
    end 
  end 
) 

Link to comment
I have no idea if it's even possible to stop fire from being created.

I'm also not sure if it's entirely possible to prevent fire damage, this code should do well - if not, it will at least protect from flame thrower damage.

addEventHandler("onClientPlayerDamage", localPlayer,  
  function(attacker, weapon, bodypart, loss) 
    if weapon == 37 then --assuming that you can use 'Burnt' death cause on onClientPlayerDamage 
      cancelEvent() 
    end 
  end 
) 

I've tried that long back, it doesn't work.

EDIT: I had mistake in my code, It's working fine thanks :)

Do you know, what function should i use to make vehicle fireproof?

Link to comment
I don't think the fire creation can be removed from an explosion.

But you could try to use another type of explosion.

event > cancelEvent() > createExplosion

https://wiki.multitheftauto.com/wiki/OnClientExplosion

https://wiki.multitheftauto.com/wiki/CancelEvent

https://wiki.multitheftauto.com/wiki/CreateExplosion

ahhh thanks

setVehicleDamageProof 

I wanted to make it fire proof anyway i made it using onClientVehicleDamage.

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...