# STATS::WEEKLY_COLLECTIBLE_GET_NUM_ITEMS_IN_SET

- **Hash:** `0x7D675C9DDDB365BE`
- **Namespace:** STATS
- **Runtime name (Lua/JS):** `WeeklyCollectibleGetNumItemsInSet`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/STATS/WEEKLY_COLLECTIBLE_GET_NUM_ITEMS_IN_SET

## Signature

```c
int WEEKLY_COLLECTIBLE_GET_NUM_ITEMS_IN_SET(Hash chalHash, int index);
```

## Parameters

- `chalHash` (`Hash`)
- `index` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = WeeklyCollectibleGetNumItemsInSet(chalHash, index)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7D675C9DDDB365BE, chalHash, index, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = WeeklyCollectibleGetNumItemsInSet(chalHash, index);

// by hash
const retval = Citizen.invokeNative('0x7D675C9DDDB365BE', chalHash, index, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x7D675C9DDDB365BE, chalHash, index);
```

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

*Sources: alloc8or RDR3 NativeDB.*
