EntityClient

getEntityHeading

GET_ENTITY_HEADING0xE83D4F9BA2A38914

The 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.

SignatureJavaScript
getEntityHeading(entity: Entity): number
SignatureLua
getEntityHeading(entity: Entity): number

Usage

JavaScript
const value = getEntityHeading(entity);
Lua
local value = getEntityHeading(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

float JavaScript number, Lua number

Notes

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

Open in the interactive natives reference