GET_ENTITY_HEADING
Signature
float GET_ENTITY_HEADING(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Usage
local retval = GetEntityHeading(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x972cc383, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntityHeading(entity);
// by hash
const retval = Citizen.invokeNative('0x972cc383', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x972cc383, entity);See also
SET_ENTITY_HEADINGSet the heading of an entity in degrees also known as "Yaw".
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.