Sign in to follow this  
Freamee

Vehicle damage

Recommended Posts

Hello.

Is this not yet in? Or my server is bugged?
When im shooting at a vehicle with player in it, it does not take any dmg.

Share this post


Link to post
Share on other sites

If a player gets in a vehicle, gets out and gets back in then yes the vehicle won't take damage, this can be easily fixed by setting .setInvincible(false) onto the vehicle and it will take damage again, such as applying it on playerEnterVehicle for example

https://wiki.rage.mp/index.php?title=Entity::setInvincible

How you implement this fix depends on how you want it to work, but all you have to do is use that function and it'll work again.

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.