getEntityHeading
GET_ENTITY_HEADING0xE83D4F9BA2A38914The GTA V native GET_ENTITY_HEADING of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityHeading, in JavaScript and in Lua.
getEntityHeading(entity: Entity): numbergetEntityHeading(entity: Entity): numberUsage
JavaScript
const value = getEntityHeading(entity);Lua
local value = getEntityHeading(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
float JavaScript number, Lua numberNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
Reference
- Namespace
- Entity ENTITY
- In the game
float GET_ENTITY_HEADING(Entity entity)- Hash
0xE83D4F9BA2A38914