isVehicleSmokeTrailEnabled | Multi Theft Auto: Wiki Skip to content

isVehicleSmokeTrailEnabled

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function is used to check planes smoke trail enabled or disabled.

Note

The smoke trail is only supported to models 512 and 513, so this only going to works with that models

OOP Syntax Help! I don't understand this!

  • Method:vehicle:isSmokeTrailEnabled(...)

Syntax

isVehicleSmokeTrailEnabled isVehicleSmokeTrailEnabled ( vehicle veh )
Required Arguments
  • veh: MISSING_PARAM_DESC

Returns

  • isVehicleSmokeTrailEnabled: value

If it enabled it returns true , false otherwise.

Code Examples

shared

This example let you set and check 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

Vehicle Functions