The Lab
ENTITY native

GET_MATCHING_ENTITIES

returns int6 paramsbuild 1207

Fills itemSet with entities of type entityType in the volume matching the given filters and returns how many were found.

Signature

C
int GET_MATCHING_ENTITIES(Volume volume, ItemSet itemSet, int entityType, Any p3, Hash p4, const char* p5); // 0x84CCF9A12942C83D b1207

Parameters

#NameType
1volumeVolume
2itemSetItemSet
3entityTypeint
4p3Any
5p4Hash
6p5const char*

Facts

Facts about GET_MATCHING_ENTITIES
Name
GET_MATCHING_ENTITIES
Hash
0x84CCF9A12942C83D
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(0x84CCF9A12942C83D, -- GET_MATCHING_ENTITIES
  0, -- Volume volume
  0, -- ItemSet itemSet
  0, -- int entityType
  0, -- Any p3
  GetHashKey("name"), -- Hash p4
  "text", -- const char* p5
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x84CCF9A12942C83D", // GET_MATCHING_ENTITIES
  0, // Volume volume
  0, // ItemSet itemSet
  0, // int entityType
  0, // Any p3
  GetHashKey("name"), // Hash p4
  "text", // const char* p5
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x84CCF9A12942C83D, // GET_MATCHING_ENTITIES
  0, // Volume volume
  0, // ItemSet itemSet
  0, // int entityType
  0, // Any p3
  (uint)API.GetHashKey("name"), // Hash p4
  "text" // const char* p5
);
All ENTITY natives

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