getEntityRoll
GET_ENTITY_ROLL0x831E0242595560DFThe 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.
getEntityRoll(entity: Entity): numbergetEntityRoll(entity: Entity): numberUsage
JavaScript
const value = getEntityRoll(entity);Lua
local value = getEntityRoll(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
float JavaScript number, Lua numberNotes
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