GET_ENTITY_ROTATION
Signature
Vector3 GET_ENTITY_ROTATION(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Vector3
Usage
local retval = GetEntityRotation(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8ff45b04, entity, Citizen.ResultAsVector())JavaScript and C#
const retval = GetEntityRotation(entity);
// by hash
const retval = Citizen.invokeNative('0x8ff45b04', entity, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x8ff45b04, entity);See also
SET_ENTITY_ROTATIONSets the rotation of a specified entity in the game world.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.