setEntityHeading
SET_ENTITY_HEADING0x8E2530AA8ADA980EThe GTA V native SET_ENTITY_HEADING of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityHeading, in JavaScript and in Lua.
setEntityHeading(entity: Entity, heading: number): voidsetEntityHeading(entity: Entity, heading: number)Usage
JavaScript
setEntityHeading(entity, heading);Lua
setEntityHeading(entity, heading)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
heading | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Set the heading of an entity in degrees also known as "Yaw".
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_HEADING(Entity entity, float heading)- Hash
0x8E2530AA8ADA980E