The Lab
ENTITY native

IS_ENTITY_AT_ENTITY

returns BOOL8 paramsbuild 1207

Returns true if entity1 is within the box of the given size around entity2.

Signature

C
BOOL IS_ENTITY_AT_ENTITY(Entity entity1, Entity entity2, float xSize, float ySize, float zSize, BOOL p5, BOOL p6, int p7); // 0xC057F02B837A27F6 b1207

Parameters

#NameType
1entity1Entity
2entity2Entity
3xSizefloat
4ySizefloat
5zSizefloat
6p5BOOL
7p6BOOL
8p7int

Facts

Facts about IS_ENTITY_AT_ENTITY
Name
IS_ENTITY_AT_ENTITY
Hash
0xC057F02B837A27F6
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(0xC057F02B837A27F6, -- IS_ENTITY_AT_ENTITY
  PlayerPedId(), -- Entity entity1
  PlayerPedId(), -- Entity entity2
  0.0, -- float xSize
  0.0, -- float ySize
  0.0, -- float zSize
  false, -- BOOL p5
  false, -- BOOL p6
  0 -- int p7
)
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("0xC057F02B837A27F6", // IS_ENTITY_AT_ENTITY
  PlayerPedId(), // Entity entity1
  PlayerPedId(), // Entity entity2
  0.0, // float xSize
  0.0, // float ySize
  0.0, // float zSize
  false, // BOOL p5
  false, // BOOL p6
  0, // int p7
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC057F02B837A27F6, // IS_ENTITY_AT_ENTITY
  API.PlayerPedId(), // Entity entity1
  API.PlayerPedId(), // Entity entity2
  0.0f, // float xSize
  0.0f, // float ySize
  0.0f, // float zSize
  false, // BOOL p5
  false, // BOOL p6
  0 // int p7
);
All ENTITY natives

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