# ITEMDATABASE::_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST

- **Hash:** `0x388088BFF3681189`
- **Namespace:** ITEMDATABASE
- **Runtime name (Lua/JS):** `ItemdatabaseGetBundleAcquireCostsCountFromCost`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1232
- **URL:** https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST

## Signature

```c
int _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST(Hash bundle, Hash cost);
```

## Parameters

- `bundle` (`Hash`)
- `cost` (`Hash`)

## Returns

`int`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns the number of currencies/cost entries available for a bundle and cost hash.
Use 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: VORPCORE RDR3natives*

Return the number of currencies available for a bundle. To use with _ITEMDATABASE_FILLOUT_BUNDLE
bundle: Hash — e.g: BUNDLE_CLOTHING_ITEM_F_OFFHAND_000_TINT_001
cost: Hash — e.g: COST_GOLD, COST_CRAFTING_MP...

## Usage

### Lua

```lua
local retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost)

-- always available, by hash
local retval = Citizen.InvokeNative(0x388088BFF3681189, bundle, cost, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost);

// by hash
const retval = Citizen.invokeNative('0x388088BFF3681189', bundle, cost, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x388088BFF3681189, bundle, cost);
```

- 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.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
