- Documentation
- Server functions
- setVehicleRotorState
Function
setVehicleRotorState
Stores whether a helicopter's rotor should spin.
Syntax
bool setVehicleRotorState(vehicle vehicle, bool value)Arguments
vehiclevehicle- The helicopter.
valuebooltrue= 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.