The Lab
ENTITY native

IS_ENTITY_AT_COORD

returns BOOL10 paramsbuild 1207

Returns true if the entity is within the box of the given size centered on the given coordinates.

Signature

C
BOOL IS_ENTITY_AT_COORD(Entity entity, float xPos, float yPos, float zPos, float xSize, float ySize, float zSize, BOOL p7, BOOL p8, int p9); // 0x5E58342602E94718 b1207

Parameters

#NameType
1entityEntity
2xPosfloat
3yPosfloat
4zPosfloat
5xSizefloat
6ySizefloat
7zSizefloat
8p7BOOL
9p8BOOL
10p9int

Facts

Facts about IS_ENTITY_AT_COORD
Name
IS_ENTITY_AT_COORD
Hash
0x5E58342602E94718
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(0x5E58342602E94718, -- IS_ENTITY_AT_COORD
  PlayerPedId(), -- Entity entity
  0.0, -- float xPos
  0.0, -- float yPos
  0.0, -- float zPos
  0.0, -- float xSize
  0.0, -- float ySize
  0.0, -- float zSize
  false, -- BOOL p7
  false, -- BOOL p8
  0 -- int p9
)
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("0x5E58342602E94718", // IS_ENTITY_AT_COORD
  PlayerPedId(), // Entity entity
  0.0, // float xPos
  0.0, // float yPos
  0.0, // float zPos
  0.0, // float xSize
  0.0, // float ySize
  0.0, // float zSize
  false, // BOOL p7
  false, // BOOL p8
  0, // int p9
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x5E58342602E94718, // IS_ENTITY_AT_COORD
  API.PlayerPedId(), // Entity entity
  0.0f, // float xPos
  0.0f, // float yPos
  0.0f, // float zPos
  0.0f, // float xSize
  0.0f, // float ySize
  0.0f, // float zSize
  false, // BOOL p7
  false, // BOOL p8
  0 // int p9
);
All ENTITY natives

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