- Documentation
- Server functions
- getElementAngularVelocity
Function
getElementAngularVelocity
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