{"hash":"0xE843D21A8E2498AA","ns":"INVENTORY","name":"_INVENTORY_GET_CHILDREN_COUNT","slug":"_INVENTORY_GET_CHILDREN_COUNT","official":false,"named":true,"luaName":"InventoryGetChildrenCount","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"inventoryId","type":"int"},{"name":"parentGuid","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_CHILDREN_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_CHILDREN_COUNT.md","snippets":{"lua":"local retval, parentGuid = InventoryGetChildrenCount(inventoryId, parentGuid)","luaInvoke":"local retval, parentGuid = Citizen.InvokeNative(0xE843D21A8E2498AA, inventoryId, Citizen.PointerValueIntInitialized(parentGuid), Citizen.ResultAsInteger())","js":"const [retval, parentGuid] = InventoryGetChildrenCount(inventoryId, parentGuid);","jsInvoke":"const [retval, parentGuid] = Citizen.invokeNative('0xE843D21A8E2498AA', inventoryId, Citizen.pointerValueIntInitialized(parentGuid), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var parentGuid = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xE843D21A8E2498AA, inventoryId, parentGuid);\n// parentGuid.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."]}}