The Lab
ENTITY native

GET_ENTITY_HEIGHT

returns float6 paramsbuild 1207

Returns the height of the entity relative to the given point.

Signature

C
float GET_ENTITY_HEIGHT(Entity entity, float X, float Y, float Z, BOOL atTop, BOOL inWorldCoords); // 0x296DEBC84474B375 b1207

Parameters

#NameType
1entityEntity
2Xfloat
3Yfloat
4Zfloat
5atTopBOOL
6inWorldCoordsBOOL

Facts

Facts about GET_ENTITY_HEIGHT
Name
GET_ENTITY_HEIGHT
Hash
0x296DEBC84474B375
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x296DEBC84474B375, -- GET_ENTITY_HEIGHT
  PlayerPedId(), -- Entity entity
  0.0, -- float X
  0.0, -- float Y
  0.0, -- float Z
  false, -- BOOL atTop
  false, -- BOOL inWorldCoords
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x296DEBC84474B375", // GET_ENTITY_HEIGHT
  PlayerPedId(), // Entity entity
  0.0, // float X
  0.0, // float Y
  0.0, // float Z
  false, // BOOL atTop
  false, // BOOL inWorldCoords
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x296DEBC84474B375, // GET_ENTITY_HEIGHT
  API.PlayerPedId(), // Entity entity
  0.0f, // float X
  0.0f, // float Y
  0.0f, // float Z
  false, // BOOL atTop
  false // BOOL inWorldCoords
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.