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

Function

setVehicleRotorSpeed

ServerVehiclesIdentical to MTA:SA

Stores the rotation speed of a helicopter rotor or a plane propeller.

Syntax

bool setVehicleRotorSpeed(vehicle vehicle, float value)

Arguments

vehiclevehicle
A helicopter or plane.
valuefloat
Speed -10..10.

Returns

true on success.

Example

local heli = createVehicle(487, 1765, -2290, 14)
setVehicleRotorSpeed(heli, 0.2)

Notes

State for scripts. The rotor in the game spins according to the engine; setting it by script does not change it yet.

See also