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

Function

setElementAngularVelocity

ServerElementsIdentical to MTA:SA

Sets the element's rotation speed around the X, Y and Z axes.

Syntax

bool setElementAngularVelocity(element theElement, float rx, float ry, float rz)

Arguments

theElementelement
The element.
rxfloat
Rotation around X.
ryfloat
Rotation around Y.
rzfloat
Rotation around Z.

Returns

true on success.

Example

setElementAngularVelocity(vehicle, 0, 0, 0.5)

See also