GET_ENTITY_HEIGHT
Returns the height of the entity relative to the given point.
Signature
float GET_ENTITY_HEIGHT(Entity entity, float X, float Y, float Z, BOOL atTop, BOOL inWorldCoords); // 0x296DEBC84474B375 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | X | float |
| 3 | Y | float |
| 4 | Z | float |
| 5 | atTop | BOOL |
| 6 | inWorldCoords | BOOL |
Facts
| 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.
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)// 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)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
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.