_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
Searches the building pool for an entity using modelHash and returns it.
Signature
Entity _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL(Hash modelHash); // 0x66B2B83B94B22458 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | modelHash | Hash |
Facts
| 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.
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)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)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
);Related ENTITY natives
- _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
- _DOES_THREAD_OWN_THIS_ENTITY
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- DOES_ENTITY_BELONG_TO_THIS_SCRIPT
- GET_ENTITY_MODEL
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- HAS_ENTITY_COLLIDED_WITH_ANYTHING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.