_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL
Alternative Name: _GET_ENTITY_FROM_MAP_OBJECT; You can get existing objects and manipulate them using this native.
Hash
0x66B2B83B94B22458Runtime name
SearchBuildingPoolForEntityWithThisModelNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Entity _SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL(Hash modelHash);Parameters
| Name | Type | Description |
|---|---|---|
modelHash | Hash | — |
Returns Entity
Description
Alternative Name: _GET_ENTITY_FROM_MAP_OBJECT; You can get existing objects and manipulate them using this native.
femga rdr3_discoveries · research notes
// 0x66B2B83B94B22458
_GET_ENTITY_FROM_MAP_OBJECT(map_object hash)
SOME FLAGS:
//SET_PED_CONFIG_FLAG Citizen.InvokeNative(0x1913FE4CBF41C463,created_object, 263, true); -- headshot immunityUsage
local retval = SearchBuildingPoolForEntityWithThisModel(modelHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x66B2B83B94B22458, modelHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = SearchBuildingPoolForEntityWithThisModel(modelHash);
// by hash
const retval = Citizen.invokeNative('0x66B2B83B94B22458', modelHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x66B2B83B94B22458, modelHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · femga rdr3_discoveries
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.