SetVehicleDamageProof: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This functions | {{Server client function}} | ||
This functions makes a vehicle damage proof, meaning it can't be destroyed at all. | |||
==Syntax== | ==Syntax== | ||
Line 8: | Line 9: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theVehicle:''' The vehicle you wish to | *'''theVehicle:''' The vehicle you wish to make damage proof. | ||
*'''damageProof:''' true | *'''damageProof:''' ''true'' is damage proof, ''false'' is damageable | ||
===Returns=== | ===Returns=== | ||
Line 15: | Line 16: | ||
==Example== | ==Example== | ||
This example | This example spawns a vehicle and sets it damage proof immediately. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
newvehicle = createVehicle(602, 0, 0, 6) | |||
setVehicleDamageProof( | setVehicleDamageProof(newvehicle, true) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Vehicle functions}} | {{Vehicle functions}} |
Revision as of 20:19, 15 August 2007
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
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates