IS_ENTITY_IN_ANGLED_AREA
Returns true if the entity is inside the angled area defined by an origin, an edge and a width.
Signature
BOOL IS_ENTITY_IN_ANGLED_AREA(Entity entity, float originX, float originY, float originZ, float edgeX, float edgeY, float edgeZ, float angle, BOOL p8, BOOL p9, Any p10); // 0xD3151E53134595E5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | originX | float |
| 3 | originY | float |
| 4 | originZ | float |
| 5 | edgeX | float |
| 6 | edgeY | float |
| 7 | edgeZ | float |
| 8 | angle | float |
| 9 | p8 | BOOL |
| 10 | p9 | BOOL |
| 11 | p10 | Any |
Facts
| Name | IS_ENTITY_IN_ANGLED_AREA |
|---|---|
| Hash | 0xD3151E53134595E5 |
| 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(0xD3151E53134595E5, -- IS_ENTITY_IN_ANGLED_AREA
PlayerPedId(), -- Entity entity
0.0, -- float originX
0.0, -- float originY
0.0, -- float originZ
0.0, -- float edgeX
0.0, -- float edgeY
0.0, -- float edgeZ
0.0, -- float angle
false, -- BOOL p8
false, -- BOOL p9
0 -- Any p10
)
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("0xD3151E53134595E5", // IS_ENTITY_IN_ANGLED_AREA
PlayerPedId(), // Entity entity
0.0, // float originX
0.0, // float originY
0.0, // float originZ
0.0, // float edgeX
0.0, // float edgeY
0.0, // float edgeZ
0.0, // float angle
false, // BOOL p8
false, // BOOL p9
0, // Any p10
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD3151E53134595E5, // IS_ENTITY_IN_ANGLED_AREA
API.PlayerPedId(), // Entity entity
0.0f, // float originX
0.0f, // float originY
0.0f, // float originZ
0.0f, // float edgeX
0.0f, // float edgeY
0.0f, // float edgeZ
0.0f, // float angle
false, // BOOL p8
false, // BOOL p9
0 // Any p10
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.