SetVehicleDamageProof: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Added note about flipping damage proof vehicles)
No edit summary
Line 1: Line 1:
{{Needs_Checking|Broken serverside --[[User:Ransom|Ransom]] 09:41, 18 September 2007 (CDT)}}
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}

Revision as of 14:41, 18 September 2007

Dialog-information.png This article needs checking.

Reason(s): Broken serverside --Ransom 09:41, 18 September 2007 (CDT)


This functions makes a vehicle damage proof, so it won't take damage from bullets, hits, explosions or fire. A damage proof's vehicle health can still be changed via script. Also, flipping the vehicle still causes it to explode.

Syntax

Click to collapse [-]
Server and Client
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

Click to collapse [-]
Server and Client

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

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

See Also