ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVehicleRotorState

Function

setVehicleRotorState

Stores whether a helicopter's rotor should spin.

Syntax

bool setVehicleRotorState(vehicle vehicle, bool value)

Arguments

vehiclevehicle
The helicopter.
valuebool
true = spinning.

Differences from MTA:SA

  • These MTA:SA arguments are not here: bool stopRotor = true

In MTA:SA

setVehicleRotorState(vehicle theVehicle, bool state, bool stopRotor = true)

Returns

true on success.

Example

local heli = createVehicle(487, 1765, -2290, 14)
setVehicleRotorState(heli, false)

Notes

State for scripts. See setVehicleRotorSpeed.

See also