SetVehicleDamageProof

From Multi Theft Auto: Wiki
Revision as of 20:19, 15 August 2007 by Arc (talk | contribs)
Jump to navigation Jump to search

This functions makes a vehicle damage proof, meaning it can't be destroyed at all.

Syntax

bool setVehicleDamageProof ( vehicle theVehicle, bool damageProof )

Required Arguments

  • theVehicle: The vehicle you wish to make damage proof.
  • damageProof: true is damage proof, false is damageable

Returns

Returns true if the vehicle was set damage proof succesfully, false if the arguments are invalid or it failed.

Example

This example spawns a vehicle and sets it damage proof immediately.

newvehicle = createVehicle(602, 0, 0, 6)
setVehicleDamageProof(newvehicle, true)

See Also