RedM Natives

GET_ENTITY_ROTATION

Hash0xE09CAF86C32CB48F
Runtime nameGetEntityRotation
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAFBD61CC738D9EB9

Signature

Vector3 GET_ENTITY_ROTATION(Entity entity, int rotationOrder);

Parameters

NameTypeDescription
entityEntity—
rotationOrderint—

Returns Vector3

Usage

Lua
local retval = GetEntityRotation(entity, rotationOrder)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE09CAF86C32CB48F, entity, rotationOrder, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetEntityRotation(entity, rotationOrder);

// by hash
const retval = Citizen.invokeNative('0xE09CAF86C32CB48F', entity, rotationOrder, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0xE09CAF86C32CB48F, entity, rotationOrder);

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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