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

Function

getElementAngularVelocity

ServerElementsIdentical to MTA:SA

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

Syntax

float getElementAngularVelocity(element theElement)

Arguments

theElementelement
The element.

Returns

rx, ry, rz or false.

Example

local rx, ry, rz = getElementAngularVelocity(vehicle)
if math.abs(rz) > 0.2 then
    outputChatBox("Kręcisz bączki!", getVehicleOccupant(vehicle))
end

See also