_GET_SHOP_ITEM_COMPONENT_CATEGORY
Hash
0x5FF9A878C3D115B8Runtime name
GetShopItemComponentCategoryNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Hash _GET_SHOP_ITEM_COMPONENT_CATEGORY(Hash componentHash, int metapedType, BOOL isMP);Parameters
| Name | Type | Description |
|---|---|---|
componentHash | Hash | — |
metapedType | int | — |
isMP | BOOL | — |
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
local retval = GetShopItemComponentCategory(componentHash, metapedType, isMP)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5FF9A878C3D115B8, componentHash, metapedType, isMP, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetShopItemComponentCategory(componentHash, metapedType, isMP);
// by hash
const retval = Citizen.invokeNative('0x5FF9A878C3D115B8', componentHash, metapedType, isMP, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Enums and flags
- eMetaPedType 4 values
Sources
alloc8or RDR3 NativeDB · femga rdr3_discoveries
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.