Jump to content

Recommended Posts

Posted
mp.events.add('CheckWaterCrash', () => {

  let vehicle =  mp.players.local.vehicle;
  
  if (vehicle.isInWater() && !vehicle.getIsEngineRunning()) {

//do what you want

  }
});

 

  • Mask 1
Posted (edited)
On 05/05/2018 at 2:28 PM, Captien said:

mp.events.add('CheckWaterCrash', () => {

  let vehicle =  mp.players.local.vehicle;
  
  if (vehicle.isInWater() && !vehicle.getIsEngineRunning()) {

//do what you want

  }
});

 


Thank you my friend, this will work until the engine life function works when the vehicle falls into the water.
Edited by LeozinH1
  • 3 years later...
Posted

What must be done in order to repair a vehicle that has been submerged in water? I've tried doing basic repair and checking is vehicle is dead but still the player just exits the vehicle immediately.

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