GET_ENTITY_HEADING
Returns the heading of the entity in degrees.
Hash
0xC230DD956E2F5507Runtime name
GetEntityHeadingNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE83D4F9BA2A38914Signature
float GET_ENTITY_HEADING(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Description
Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
Usage
local retval = GetEntityHeading(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC230DD956E2F5507, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntityHeading(entity);
// by hash
const retval = Citizen.invokeNative('0xC230DD956E2F5507', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xC230DD956E2F5507, entity);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.