Jump to content

[Help] Is vehicle damage system broken?


Recommended Posts

Posted (edited)

I've found a temporary fix:

mp.events.add('playerEnterVehicle', (vehicle, seat) => {
    vehicle.invincibility = false;
})

From what I've tested it fixes the problem.

EDIT: Or so I though, but i think it was something else I've done. If I find anything related to JS I'll update.

EDIT 2: Code is now correct.

EDIT 3: Sorry for another edit. This seems kinda random right now. I've managed to make it work with this event twice, but now it just kinda stopped working. So far I've tried:
 

vehicle.setInvincible(false);

vehicle.invincibility = false;

vehicle.invincibility(false);

And using natives. Nothing seems to work right now.

Edited by dArkyunn
  • 11 months later...
  • 1 year later...

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