SetVehicleDoorsUndamageable: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added sections, minor changes, removed flawed example (correcting it would make it too long)) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
This function | This function makes a vehicle's doors undamageable. | ||
==Syntax== | ==Syntax== | ||
<section name="Server and Client" class="both" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setVehicleDoorsUndamageable ( vehicle theVehicle, bool state ) | bool setVehicleDoorsUndamageable ( vehicle theVehicle, bool state ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theVehicle:''' The vehicle of which you wish to set the car door damageability. | *'''theVehicle:''' The [[vehicle]] of which you wish to set the car door damageability. | ||
*'''state:''' ''true'' | *'''state:''' A boolean denoting whether the vehicle's doors are undamageable (''true'') or damageable (''false'') damageable. | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if | Returns ''true'' if the damageability state was successfully changed, ''false'' if invalid arguments were passed. | ||
</section> | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Vehicle functions}} | |||
{{ | [[Category:Needs example]] | ||
[[Category: |
Revision as of 20:43, 26 August 2007
This function makes a vehicle's doors undamageable.
Syntax
Click to collapse [-]
Server and Clientbool 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
- 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