Jump to content

No Vehicle Fall Damage


Recommended Posts

Posted

Hi

so i was wondering, if you notice when u go to the airport and and fall vertically to the ground from a great distance, your vehicle will basically get no damage.

I thought that the object used didn't allow getting damage ( for instance id 5002 ) but sadly i was wrong.

So, i'm asking if such thing can be accomplished via scripting. I don't want something like:

setVehicleDamageProof(vehicle, true) 

I just want the players' vehicles to avoid getting damage when falling to the ground ( model 6959 for example)

I tried onClientVehicleCollision but couldn't do it.

Any help is appreciated

Posted
  
if ( getElementHealth ( Element ) ~= 1000 ) then 
setElementHealth(Element,1000) 
  

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Define element through getPedOccupiedVehicle.

are you blind? he was giving a example, but that won't help either. I have no idea how to do this and editing of the example and making defining element should be done by the @OP.

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