The Lab
ENTITY native

_GET_ENTITIES_IN_VOLUME

returns int3 paramsbuild 1207

Fills itemSet with entities of type entityType inside the volume and returns how many were found.

Create the item set first and destroy it after reading the results.

Signature

C
int _GET_ENTITIES_IN_VOLUME(Volume volume, ItemSet itemSet, int entityType); // 0x886171A12F400B89 b1207

Parameters

#NameType
1volumeVolume
2itemSetItemSet
3entityTypeint

Facts

Facts about _GET_ENTITIES_IN_VOLUME
Name
_GET_ENTITIES_IN_VOLUME
Hash
0x886171A12F400B89
Namespace
Returns
int
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(0x886171A12F400B89, -- _GET_ENTITIES_IN_VOLUME
  0, -- Volume volume
  0, -- ItemSet itemSet
  0, -- int entityType
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x886171A12F400B89", // _GET_ENTITIES_IN_VOLUME
  0, // Volume volume
  0, // ItemSet itemSet
  0, // int entityType
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x886171A12F400B89, // _GET_ENTITIES_IN_VOLUME
  0, // Volume volume
  0, // ItemSet itemSet
  0 // int entityType
);
All ENTITY natives

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