IsVehicleSmokeTrailEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ {{Added feature/item|1.6.1|1.6.0|22815 | 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}} ==Syntax== <syntaxhighlight lang="lua"> isVehicleSmokeTrailEnabled( vehicle veh ) </syntaxhighlight> ===Required arguments=== *'''theVehicle:''' The vehicle that you want to set the smoke trail. ===Returns=...")
 
m (add oop)
 
Line 11: Line 11:
isVehicleSmokeTrailEnabled( vehicle veh )
isVehicleSmokeTrailEnabled( vehicle veh )
</syntaxhighlight>  
</syntaxhighlight>  
{{OOP||[[vehicle]]:isSmokeTrailEnabled}}


===Required arguments===
===Required arguments===

Latest revision as of 10:32, 10 January 2025

BETA: NEW FEATURE (BUILD: 1.6.0 r22815 )

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

[[{{{image}}}|link=|]] Note: The smoke trail is only supported to models 512 and 513, so this only going to works with that models

Syntax

isVehicleSmokeTrailEnabled( vehicle veh )

OOP Syntax Help! I don't understand this!

Method: vehicle:isSmokeTrailEnabled(...)


Required arguments

  • theVehicle: The vehicle that you want to set the smoke trail.

Returns

If it enabled it returns true, false otherwise.

Example

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