Jump to content
RAGE Multiplayer Community

Check if the vehicle has fallen into the water


Recommended Posts

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
Link to comment
Share on other sites

  • 3 years later...

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.

Link to comment
Share on other sites

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