_INVENTORY_GET_CHILDREN_COUNT
Hash
0xE843D21A8E2498AARuntime name
InventoryGetChildrenCountNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _INVENTORY_GET_CHILDREN_COUNT(int inventoryId, Any* parentGuid);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
parentGuid | Any* | — |
Returns int
Usage
local retval, parentGuid = InventoryGetChildrenCount(inventoryId, parentGuid)
-- always works, by hash
local retval, parentGuid = Citizen.InvokeNative(0xE843D21A8E2498AA, inventoryId, Citizen.PointerValueIntInitialized(parentGuid), Citizen.ResultAsInteger())JavaScript and C#
const [retval, parentGuid] = InventoryGetChildrenCount(inventoryId, parentGuid);
// by hash
const [retval, parentGuid] = Citizen.invokeNative('0xE843D21A8E2498AA', inventoryId, Citizen.pointerValueIntInitialized(parentGuid), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var parentGuid = new OutputArgument();
int retval = Function.Call<int>((Hash)0xE843D21A8E2498AA, inventoryId, parentGuid);
// parentGuid.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.