IS_ENTITY_IN_AREA
Returns true if the entity is inside the axis-aligned box between the two corners.
Signature
BOOL IS_ENTITY_IN_AREA(Entity entity, float x1, float y1, float z1, float x2, float y2, float z2, BOOL p7, BOOL p8, Any p9); // 0x0C2634C40A16193E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | x1 | float |
| 3 | y1 | float |
| 4 | z1 | float |
| 5 | x2 | float |
| 6 | y2 | float |
| 7 | z2 | float |
| 8 | p7 | BOOL |
| 9 | p8 | BOOL |
| 10 | p9 | Any |
Facts
| Name | IS_ENTITY_IN_AREA |
|---|---|
| Hash | 0x0C2634C40A16193E |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x0C2634C40A16193E, -- IS_ENTITY_IN_AREA
PlayerPedId(), -- Entity entity
0.0, -- float x1
0.0, -- float y1
0.0, -- float z1
0.0, -- float x2
0.0, -- float y2
0.0, -- float z2
false, -- BOOL p7
false, -- BOOL p8
0 -- Any p9
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x0C2634C40A16193E", // IS_ENTITY_IN_AREA
PlayerPedId(), // Entity entity
0.0, // float x1
0.0, // float y1
0.0, // float z1
0.0, // float x2
0.0, // float y2
0.0, // float z2
false, // BOOL p7
false, // BOOL p8
0, // Any p9
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x0C2634C40A16193E, // IS_ENTITY_IN_AREA
API.PlayerPedId(), // Entity entity
0.0f, // float x1
0.0f, // float y1
0.0f, // float z1
0.0f, // float x2
0.0f, // float y2
0.0f, // float z2
false, // BOOL p7
false, // BOOL p8
0 // Any p9
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.