EntityClient

getEntityRoll

GET_ENTITY_ROLL0x831E0242595560DF

The GTA V native GET_ENTITY_ROLL of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityRoll, in JavaScript and in Lua.

SignatureJavaScript
getEntityRoll(entity: Entity): number
SignatureLua
getEntityRoll(entity: Entity): number

Usage

JavaScript
const value = getEntityRoll(entity);
Lua
local value = getEntityRoll(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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

Reference

Namespace
Entity ENTITY
In the game
float GET_ENTITY_ROLL(Entity entity)
Hash
0x831E0242595560DF

Open in the interactive natives reference