GET_MATCHING_ENTITIES
Fills itemSet with entities of type entityType in the volume matching the given filters and returns how many were found.
Signature
int GET_MATCHING_ENTITIES(Volume volume, ItemSet itemSet, int entityType, Any p3, Hash p4, const char* p5); // 0x84CCF9A12942C83D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | volume | Volume |
| 2 | itemSet | ItemSet |
| 3 | entityType | int |
| 4 | p3 | Any |
| 5 | p4 | Hash |
| 6 | p5 | const char* |
Facts
| 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.
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)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)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
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.