RedM Natives

GET_ENTITY_ROLL

Displays the current ROLL axis of the entity [-180.0000/180.0000+] (Sideways Roll) such as a vehicle tipped on its side

Hash0xBF966536FA8B6879
Runtime nameGetEntityRoll
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x831E0242595560DF

Signature

float GET_ENTITY_ROLL(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns float

Description

Displays the current ROLL axis of the entity [-180.0000/180.0000+]
(Sideways Roll) such as a vehicle tipped on its side

Usage

Lua
local retval = GetEntityRoll(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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