SetVehicleSmokeTrailEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} __NOTOC__ {{Added feature/item|1.6.1|1.6.0|22815 | This function used to set planes smoke trail enabled or disabled. }} ==Syntax== <syntaxhighlight lang="lua"> setVehicleSmokeTrailEnabled ( vehicle veh, bool enable ) </syntaxhighlight> ===Required arguments=== *'''theVehicle:''' The vehicle that you want to set the smoke trail. *'''enable:''' A boolean if set to true it will enabled the smoke trail. *'''note''' this only works with vehicl...") |
mNo edit summary |
||
Line 5: | Line 5: | ||
}} | }} | ||
[[File:Mta-screen 2024-12-26 17-38-53.png|thumb|right]] | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 21: | Line 21: | ||
==Example== | ==Example== | ||
This example let you | This example let you set the smoke trail. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local veh = {512,513} | local veh = {512,513} |
Revision as of 14:45, 26 December 2024
Syntax
setVehicleSmokeTrailEnabled ( vehicle veh, bool enable )
Required arguments
- theVehicle: The vehicle that you want to set the smoke trail.
- enable: A boolean if set to true it will enabled the smoke trail.
- note this only works with vehicle models numbers 512 and 513.
Returns
If successful returns true, false otherwise.
Example
This example let you set the smoke trail.
local veh = {512,513} local plane = createVehicle (veh[2], 2043.23499, 1537.88562, 10.67188) local ped = createPed ( 2, 0,0,0 ) warpPedIntoVehicle ( ped, plane) setTimer(function() print(setVehicleSmokeTrailEnabled (plane,true)) end ,1500,1) function disbled() print(setVehicleSmokeTrailEnabled (plane,false)) print(isVehicleSmokeTrailEnabled(plane)) end bindKey ("r", "down", disbled )
See Also
- areVehicleLightsOn
- getHeliBladeCollisionsEnabled
- getHelicopterRotorSpeed
- getVehicleAdjustableProperty
- getVehicleComponentPosition
- getVehicleComponentRotation
- getVehicleComponents
- getVehicleComponentScale
- getVehicleComponentVisible
- getVehicleCurrentGear
- getVehicleDummyPosition
- getVehicleGravity
- getVehicleLandingGearDown
- getVehicleModelDummyDefaultPosition
- getVehicleModelDummyPosition
- getVehicleModelExhaustFumesPosition
- getVehicleModelWheelSize
- getVehicleNitroCount
- getVehicleNitroLevel
- getVehicleWheelFrictionState
- getVehicleWheelScale
- isTrainChainEngine
- isVehicleNitroActivated
- isVehicleNitroRecharging
- isVehicleOnGround
- isVehicleWheelOnGround
- isVehicleWindowOpen
- resetVehicleComponentPosition
- resetVehicleComponentRotation
- resetVehicleComponentScale
- resetVehicleDummyPositions
- setHeliBladeCollisionsEnabled
- setHelicopterRotorSpeed
- setVehicleAdjustableProperty
- setVehicleComponentPosition
- setVehicleComponentRotation
- setVehicleComponentScale
- setVehicleComponentVisible
- setVehicleDummyPosition
- setVehicleGravity
- setVehicleLandingGearDown
- setVehicleModelDummyPosition
- setVehicleModelExhaustFumesPosition
- setVehicleModelWheelSize
- setVehicleNitroActivated
- setVehicleNitroCount
- setVehicleNitroLevel
- setVehicleWheelScale
- setVehicleWheelStates
- setVehicleWindowOpen
- Shared
- 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