SetVehicleDirtLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
KryPtoHolYx (talk | contribs) |
||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
Sets the Dirt level from the Bobcat to Zero ( 0 ) | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
setVehicleDirtLevel ( 422, 0 ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:11, 21 October 2012
Function has been disabled. | |
Reason/Note: This function doesn't work actually. See the bugtracker for updates and more information. |
This function sets the dirt level on a vehicle.
Syntax
bool setVehicleDirtLevel ( vehicle theVehicle, int dirtLevel )
Required Arguments
- theVehicle: The vehicle that you want to set the dirt level from
- dirtLevel: The dirt level
Returns
Returns true if the dirt level was set on the vehicle, false if the dirt level was not set or if invalid arguments are specified.
Example
Sets the Dirt level from the Bobcat to Zero ( 0 )
setVehicleDirtLevel ( 422, 0 )
Issues
Issue ID | Description |
---|---|
#3164 | Not fixable and closed |
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