The Lab
ENTITY native

IS_ENTITY_IN_ANGLED_AREA

returns BOOL11 paramsbuild 1207

Returns true if the entity is inside the angled area defined by an origin, an edge and a width.

Signature

C
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 b1207

Parameters

#NameType
1entityEntity
2originXfloat
3originYfloat
4originZfloat
5edgeXfloat
6edgeYfloat
7edgeZfloat
8anglefloat
9p8BOOL
10p9BOOL
11p10Any

Facts

Facts about IS_ENTITY_IN_ANGLED_AREA
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.

Lua
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
JavaScript
// 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) {
  // ...
}
C#
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
);
All ENTITY natives

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