Rouzbeh Posted February 15, 2016 Share Posted February 15, 2016 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
MTA Team 0xCiBeR Posted February 15, 2016 MTA Team Share Posted February 15, 2016 You could use fixVehicle or simply use setVehicleDamageProof Link to comment
TAPL Posted February 15, 2016 Share Posted February 15, 2016 As far as i know onVehicleDamage isn't cancelable, use onClientVehicleDamage instead. Also use the useful function isVehicleEmpty. Link to comment
MTA Team 0xCiBeR Posted February 15, 2016 MTA Team Share Posted February 15, 2016 hi againi 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
TAPL Posted February 15, 2016 Share Posted February 15, 2016 hi againi 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now