IS_ENTITY_AT_COORD
Returns true if the entity is within the box of the given size centered on the given coordinates.
Signature
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | xPos | float |
| 3 | yPos | float |
| 4 | zPos | float |
| 5 | xSize | float |
| 6 | ySize | float |
| 7 | zSize | float |
| 8 | p7 | BOOL |
| 9 | p8 | BOOL |
| 10 | p9 | int |
Facts
| 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.
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// 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) {
// ...
}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
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.