The Lab
ENTITY native

_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL

returns Entity1 parambuild 1207

Searches the building pool for an entity using modelHash and returns it.

Signature

C
Entity _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL(Hash modelHash); // 0x66B2B83B94B22458 b1207

Parameters

#NameType
1modelHashHash

Facts

Facts about _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
Name
_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
Hash
0x66B2B83B94B22458
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0x66B2B83B94B22458, -- _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x66B2B83B94B22458", // _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x66B2B83B94B22458, // _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash modelHash
);
All ENTITY natives

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