The Lab
ENTITY native

IS_ENTITY_IN_VOLUME

returns BOOL4 paramsbuild 1207

Returns true if the entity is inside the given volume.

Signature

C
BOOL IS_ENTITY_IN_VOLUME(Entity entity, ScrHandle volume, BOOL p2, int p3); // 0x5A5526BC09C06623 b1207

Parameters

#NameType
1entityEntity
2volumeScrHandle
3p2BOOL
4p3int

Facts

Facts about IS_ENTITY_IN_VOLUME
Name
IS_ENTITY_IN_VOLUME
Hash
0x5A5526BC09C06623
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(0x5A5526BC09C06623, -- IS_ENTITY_IN_VOLUME
  PlayerPedId(), -- Entity entity
  0, -- ScrHandle volume
  false, -- BOOL p2
  0 -- int p3
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x5A5526BC09C06623", // IS_ENTITY_IN_VOLUME
  PlayerPedId(), // Entity entity
  0, // ScrHandle volume
  false, // BOOL p2
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x5A5526BC09C06623, // IS_ENTITY_IN_VOLUME
  API.PlayerPedId(), // Entity entity
  0, // ScrHandle volume
  false, // BOOL p2
  0 // int p3
);
All ENTITY natives

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