RedM Natives

_GET_SHOP_ITEM_COMPONENT_CATEGORY

Hash0x5FF9A878C3D115B8
Runtime nameGetShopItemComponentCategory
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Hash _GET_SHOP_ITEM_COMPONENT_CATEGORY(Hash componentHash, int metapedType, BOOL isMP);

Parameters

NameTypeDescription
componentHashHash—
metapedTypeint—
isMPBOOL—

Returns Hash

Description

femga rdr3_discoveries · research notes

0x5FF9A878C3D115B8     (by Disquse)

Use this to get the category of a ped component.
if your player is mp_male replace "VALUE" with false, and if its mp_female replace it with true.
int category = Function.Call<int>((Hash)0x5FF9A878C3D115B8, hash, VALUE, true);

Usage

Lua
local retval = GetShopItemComponentCategory(componentHash, metapedType, isMP)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5FF9A878C3D115B8, componentHash, metapedType, isMP, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetShopItemComponentCategory(componentHash, metapedType, isMP);

// by hash
const retval = Citizen.invokeNative('0x5FF9A878C3D115B8', componentHash, metapedType, isMP, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x5FF9A878C3D115B8, componentHash, metapedType, isMP);
  • 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.

Enums and flags

Sources

alloc8or RDR3 NativeDB · femga rdr3_discoveries

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