Jump to content

[HELP]No Damage While Vehicle Is Empty


Rouzbeh

Recommended Posts

hi again

i need some idea for make vehicles undamagable or damage proof while vehicle is empty

i had tried cancelEvent on 'onVehicleDamage' and its okay , vehicle health does'nt change, BUT vehicle's appearance take damage like doors hood glasses and etc...

this is important for me cuz im working on RPG Server...

any idea how to prevent that?

Link to comment
  • Administrators
hi again

i had tried cancelEvent on 'onVehicleDamage' and its okay , vehicle health does'nt change, BUT vehicle's appearance take damage like doors hood glasses and etc...

any idea how to prevent that?

If this event is canceled, the vehicle health won't be reduced. Physical damage to the vehicle will remain.

So using onClientVehicleDamage wouldn't do the trick as it only cancels the damage but not the "esthetic" look.

Link to comment
hi again

i had tried cancelEvent on 'onVehicleDamage' and its okay , vehicle health does'nt change, BUT vehicle's appearance take damage like doors hood glasses and etc...

any idea how to prevent that?

If this event is canceled, the vehicle health won't be reduced. Physical damage to the vehicle will remain.

So using onClientVehicleDamage wouldn't do the trick as it only cancels the damage but not the "esthetic" look.

The solution: canelEvent and fixVehicle with event onClientVehicleDamage.

Link to comment

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