{"hash":"0x388088BFF3681189","ns":"ITEMDATABASE","name":"_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST","slug":"_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST","official":false,"named":true,"luaName":"ItemdatabaseGetBundleAcquireCostsCountFromCost","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"bundle","type":"Hash"},{"name":"cost","type":"Hash"}],"summary":"Returns the number of currencies/cost entries available for a bundle and cost hash.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the number of currencies/cost entries available for a bundle and cost hash.\nUse with _ITEMDATABASE_FILLOUT_BUNDLE; research notes that several docs call this parameter costtype, but scripts indicate it is the actual cost hash such as COST_GOLD or COST_CRAFTING_MP."},{"source":"vorp","format":"text","body":"Return the number of currencies available for a bundle. To use with _ITEMDATABASE_FILLOUT_BUNDLE\nbundle: Hash — e.g: BUNDLE_CLOTHING_ITEM_F_OFFHAND_000_TINT_001\ncost: Hash — e.g: COST_GOLD, COST_CRAFTING_MP..."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1232","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST.md","snippets":{"lua":"local retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost)","luaInvoke":"local retval = Citizen.InvokeNative(0x388088BFF3681189, bundle, cost, Citizen.ResultAsInteger())","js":"const retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost);","jsInvoke":"const retval = Citizen.invokeNative('0x388088BFF3681189', bundle, cost, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x388088BFF3681189, bundle, cost);","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."]}}