{"hash":"0x66B2B83B94B22458","ns":"ENTITY","name":"_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL","slug":"_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL","official":false,"named":true,"luaName":"SearchBuildingPoolForEntityWithThisModel","game":"rdr3","apiset":"client","returnType":"Entity","params":[{"name":"modelHash","type":"Hash"}],"summary":"Alternative Name: _GET_ENTITY_FROM_MAP_OBJECT; You can get existing objects and manipulate them using this native.","descriptions":[{"source":"alloc8or","format":"text","body":"Alternative Name: _GET_ENTITY_FROM_MAP_OBJECT; You can get existing objects and manipulate them using this native."},{"source":"femga","format":"pre","body":"    // 0x66B2B83B94B22458\n_GET_ENTITY_FROM_MAP_OBJECT(map_object hash)\n        SOME FLAGS:\n   //SET_PED_CONFIG_FLAG        Citizen.InvokeNative(0x1913FE4CBF41C463,created_object, 263, true); -- headshot immunity"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_SEARCH_BUILDING_POOL_FOR_ENTITY_WITH_THIS_MODEL.md","snippets":{"lua":"local retval = SearchBuildingPoolForEntityWithThisModel(modelHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x66B2B83B94B22458, modelHash, Citizen.ResultAsInteger())","js":"const retval = SearchBuildingPoolForEntityWithThisModel(modelHash);","jsInvoke":"const retval = Citizen.invokeNative('0x66B2B83B94B22458', modelHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x66B2B83B94B22458, modelHash);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"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 `InvokeNative` with the hash — it always works."]}}