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