{"hash":"0x96C6ED22FB742C3E","ns":"TASK","name":"_GET_HERB_COMPOSITE_NUM_ENTITIES","slug":"_GET_HERB_COMPOSITE_NUM_ENTITIES","official":false,"named":true,"luaName":"GetHerbCompositeNumEntities","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"compositeId","type":"int"},{"name":"outEntities","type":"Any*"}],"summary":"Flowers, Stalks or whatever the composite has","descriptions":[{"source":"alloc8or","format":"text","body":"Flowers, Stalks or whatever the composite has"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_HERB_COMPOSITE_NUM_ENTITIES","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_HERB_COMPOSITE_NUM_ENTITIES.md","snippets":{"lua":"local retval, outEntities = GetHerbCompositeNumEntities(compositeId, outEntities)","luaInvoke":"local retval, outEntities = Citizen.InvokeNative(0x96C6ED22FB742C3E, compositeId, Citizen.PointerValueIntInitialized(outEntities), Citizen.ResultAsInteger())","js":"const [retval, outEntities] = GetHerbCompositeNumEntities(compositeId, outEntities);","jsInvoke":"const [retval, outEntities] = Citizen.invokeNative('0x96C6ED22FB742C3E', compositeId, Citizen.pointerValueIntInitialized(outEntities), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var outEntities = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x96C6ED22FB742C3E, compositeId, outEntities);\n// outEntities.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","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."]}}