mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

add setVehicleSmokeTrailEnabled & isVehicleSmokeTrailEnabled function

Open Proxy-99 opened this issue 1 year ago • 1 comments

setVehicleSmokeTrailEnabled (vehicle, bool) isVehicleSmokeTrailEnabled(vehicle)

`works with Cropduster and Stuntplane id 512,513

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 ) 

Proxy-99 avatar Oct 17 '24 21:10 Proxy-99

it would be nice to make it work with engine request model ids ofc, since this new function is Clientside

Fernando-A-Rocha avatar Oct 18 '24 22:10 Fernando-A-Rocha