# ITEMDATABASE::_ITEMDATABASE_GET_CATALOG_ITEM_CATEGORY_PATHSET

- **Hash:** `0xAA29A5F13B2C20B2`
- **Namespace:** ITEMDATABASE
- **Runtime name (Lua/JS):** `ItemdatabaseGetCatalogItemCategoryPathset`
- **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_CATALOG_ITEM_CATEGORY_PATHSET

## Signature

```c
Hash _ITEMDATABASE_GET_CATALOG_ITEM_CATEGORY_PATHSET(Hash catalogItemCategory, Hash p1);
```

## Parameters

- `catalogItemCategory` (`Hash`)
- `p1` (`Hash`)

## Returns

`Hash`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns the pathset hash for the selected catalog item category, such as CI_CATEGORY_AMMO or CI_CATEGORY_CAMP_TENT.
p1 is observed as DEFAULT in Rockstar scripts.

*Source: VORPCORE RDR3natives*

Returns Pathset Hash catalogItemCategory: Hash — e.g: CI_CATEGORY_AMMO, CI_CATEGORY_CAMP_TENT...
Default: Hash — Always DEFAULT in R* scripts.

## Usage

### Lua

```lua
local retval = ItemdatabaseGetCatalogItemCategoryPathset(catalogItemCategory, p1)

-- always available, by hash
local retval = Citizen.InvokeNative(0xAA29A5F13B2C20B2, catalogItemCategory, p1, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = ItemdatabaseGetCatalogItemCategoryPathset(catalogItemCategory, p1);

// by hash
const retval = Citizen.invokeNative('0xAA29A5F13B2C20B2', catalogItemCategory, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xAA29A5F13B2C20B2, catalogItemCategory, p1);
```

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