RedM Natives

GET_ENTITY_HEADING

Returns the heading of the entity in degrees.

Hash0xC230DD956E2F5507
Runtime nameGetEntityHeading
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE83D4F9BA2A38914

Signature

float GET_ENTITY_HEADING(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns float

Description

Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.

Usage

Lua
local retval = GetEntityHeading(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC230DD956E2F5507, entity, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetEntityHeading(entity);

// by hash
const retval = Citizen.invokeNative('0xC230DD956E2F5507', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xC230DD956E2F5507, entity);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.