SetVehicleDamageProof: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
*'''theVehicle:''' The vehicle you wish to set damage proof.
*'''theVehicle:''' The vehicle you wish to set damage proof.
*'''damageProof:''' true to set the vehicle damage proof, false otherwise.
*'''damageProof:''' true to set the vehicle damage proof, false otherwise.
===Optional Arguments===
{{OptionalArg}}
(none)


===Returns===
===Returns===

Revision as of 19:53, 25 July 2007

This functions sets 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 set damage proof.
  • damageProof: true to set the vehicle damage proof, false otherwise.

Returns

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

Example

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

local vehicle = createVehicle(602,0,0,6)
setVehicleDamageProof(vehicle,true)

See Also