_GET_ENTITIES_FROM_PROP_SET
Collects entities belonging to a prop set into the given itemSet, optionally filtered by model, and returns how many were found.
Create an item set beforehand and destroy it when you are done reading results.
Signature
int _GET_ENTITIES_FROM_PROP_SET(PropSet propSet, ItemSet itemSet, Hash model, BOOL p3, BOOL p4); // 0x738271B660FE0695 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | propSet | PropSet |
| 2 | itemSet | ItemSet |
| 3 | model | Hash |
| 4 | p3 | BOOL |
| 5 | p4 | BOOL |
Facts
| Name | _GET_ENTITIES_FROM_PROP_SET |
|---|---|
| Hash | 0x738271B660FE0695 |
| 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(0x738271B660FE0695, -- _GET_ENTITIES_FROM_PROP_SET
0, -- PropSet propSet
0, -- ItemSet itemSet
GetHashKey("a_c_horse_arabian_white"), -- Hash model
false, -- BOOL p3
false, -- BOOL p4
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x738271B660FE0695", // _GET_ENTITIES_FROM_PROP_SET
0, // PropSet propSet
0, // ItemSet itemSet
GetHashKey("a_c_horse_arabian_white"), // Hash model
false, // BOOL p3
false, // BOOL p4
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x738271B660FE0695, // _GET_ENTITIES_FROM_PROP_SET
0, // PropSet propSet
0, // ItemSet itemSet
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash model
false, // BOOL p3
false // BOOL p4
);Related PROPSET natives
- _GET_PROP_SET_AT_COORDS
- _GET_PROP_SET_MODEL
- _GET_TRAIN_CARRIAGE_PROP_SET
- _GET_VEHICLE_LIGHT_PROP_SET
- _GET_VEHICLE_PROP_SET
- _GET_VEHICLE_PROP_SET_HASH
- _SET_PROP_SET_AS_NO_LONGER_NEEDED
- _SET_PROP_SET_FLAG
- _SET_PROP_SET_VISIBLE
- _ADD_ADDITIONAL_PROP_SET_FOR_VEHICLE
- _ADD_LIGHT_PROP_SET_TO_VEHICLE
- _ADD_PROP_SET_FOR_VEHICLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.