setEntityAngularVelocity
SET_ENTITY_ANGULAR_VELOCITY0x8339643499D1222EThe GTA V native SET_ENTITY_ANGULAR_VELOCITY of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityAngularVelocity, in JavaScript and in Lua.
setEntityAngularVelocity(
entity: Entity,
x: number,
y: number,
z: number
): voidsetEntityAngularVelocity(entity: Entity, x: number, y: number, z: number)Usage
JavaScript
setEntityAngularVelocity(entity, x, y, z);Lua
setEntityAngularVelocity(entity, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setEntityAngularVelocity(entity, pos);Lua · with vectors
setEntityAngularVelocity(entity, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_ANGULAR_VELOCITY(Entity entity, float x, float y, float z)- Hash
0x8339643499D1222E- Introduced
- Game build 2372 legacy numbering
- Formerly
_SET_ENTITY_ANGULAR_VELOCITY