_GET_HERB_COMPOSITE_NUM_ENTITIES
Flowers, Stalks or whatever the composite has
Hash
0x96C6ED22FB742C3ERuntime name
GetHerbCompositeNumEntitiesNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_HERB_COMPOSITE_NUM_ENTITIES(int compositeId, Any* outEntities);Parameters
| Name | Type | Description |
|---|---|---|
compositeId | int | — |
outEntities | Any* | — |
Returns int
Description
Flowers, Stalks or whatever the composite has
Usage
local retval, outEntities = GetHerbCompositeNumEntities(compositeId, outEntities)
-- always works, by hash
local retval, outEntities = Citizen.InvokeNative(0x96C6ED22FB742C3E, compositeId, Citizen.PointerValueIntInitialized(outEntities), Citizen.ResultAsInteger())JavaScript and C#
const [retval, outEntities] = GetHerbCompositeNumEntities(compositeId, outEntities);
// by hash
const [retval, outEntities] = Citizen.invokeNative('0x96C6ED22FB742C3E', compositeId, Citizen.pointerValueIntInitialized(outEntities), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var outEntities = new OutputArgument();
int retval = Function.Call<int>((Hash)0x96C6ED22FB742C3E, compositeId, outEntities);
// outEntities.GetResult<int>()- 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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.