The Lab
PROPSET native

_GET_ENTITIES_FROM_PROP_SET

returns int5 paramsbuild 1207

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

C
int _GET_ENTITIES_FROM_PROP_SET(PropSet propSet, ItemSet itemSet, Hash model, BOOL p3, BOOL p4); // 0x738271B660FE0695 b1207

Parameters

#NameType
1propSetPropSet
2itemSetItemSet
3modelHash
4p3BOOL
5p4BOOL

Facts

Facts about _GET_ENTITIES_FROM_PROP_SET
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.

Lua
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)
JavaScript
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)
C#
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
);
All PROPSET natives

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