SetVehicleDoorsUndamageable: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Server client function}}
{{Server client function}}
This function makes a vehicle's doors undamageable, so they won't fall off when they're hit.
This function makes a vehicle's doors undamageable, so they won't fall off when they're hit. Note that the vehicle '''has''' to be locked for this flag to take effect.


==Syntax==  
==Syntax==  

Revision as of 02:19, 12 November 2007

This function makes a vehicle's doors undamageable, so they won't fall off when they're hit. Note that the vehicle has to be locked for this flag to take effect.

Syntax

Click to collapse [-]
Server and Client
bool setVehicleDoorsUndamageable ( vehicle theVehicle, bool state )

Required Arguments

  • theVehicle: The vehicle of which you wish to set the car door damageability.
  • state: A boolean denoting whether the vehicle's doors are undamageable (true) or damageable (false) damageable.

Returns

Returns true if the damageability state was successfully changed, false if invalid arguments were passed.

Example


See Also