EntityClient

getEntityRotationVelocity

GET_ENTITY_ROTATION_VELOCITY0x213B91045D09B983

The GTA V native GET_ENTITY_ROTATION_VELOCITY of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityRotationVelocity, in JavaScript and in Lua.

SignatureJavaScript
getEntityRotationVelocity(entity: Entity): { x: number, y: number, z: number }
SignatureLua
getEntityRotationVelocity(entity: Entity): Vector3

Usage

JavaScript
const { x, y, z } = getEntityRotationVelocity(entity);
Lua
local coords = getEntityRotationVelocity(entity)
-- coords.x, coords.y, coords.z

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
Entity ENTITY
In the game
Vector3 GET_ENTITY_ROTATION_VELOCITY(Entity entity)
Hash
0x213B91045D09B983

Open in the interactive natives reference