RedM Natives

_ITEMDATABASE_GET_CATALOG_ITEM_CATEGORY_PATHSET

Returns the pathset hash for the selected catalog item category, such as CI_CATEGORY_AMMO or CI_CATEGORY_CAMP_TENT.

Hash0xAA29A5F13B2C20B2
Runtime nameItemdatabaseGetCatalogItemCategoryPathset
NamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1232

Signature

Hash _ITEMDATABASE_GET_CATALOG_ITEM_CATEGORY_PATHSET(Hash catalogItemCategory, Hash p1);

Parameters

NameTypeDescription
catalogItemCategoryHash—
p1Hash—

Returns Hash

Description

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.

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
local retval = ItemdatabaseGetCatalogItemCategoryPathset(catalogItemCategory, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0xAA29A5F13B2C20B2, catalogItemCategory, p1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ItemdatabaseGetCatalogItemCategoryPathset(catalogItemCategory, p1);

// by hash
const retval = Citizen.invokeNative('0xAA29A5F13B2C20B2', catalogItemCategory, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.