The Lab
PED native

_GET_SHOP_ITEM_COMPONENT_CATEGORY

returns Hash3 paramsbuild 1207

Returns the category hash of the shop item componentHash for the given meta ped type.

Signature

C
Hash _GET_SHOP_ITEM_COMPONENT_CATEGORY(Hash componentHash, int metapedType, BOOL isMP); // 0x5FF9A878C3D115B8 b1207

Parameters

#NameType
1componentHashHash
2metapedTypeint
3isMPBOOL

Facts

Facts about _GET_SHOP_ITEM_COMPONENT_CATEGORY
Name
_GET_SHOP_ITEM_COMPONENT_CATEGORY
Hash
0x5FF9A878C3D115B8
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x5FF9A878C3D115B8, -- _GET_SHOP_ITEM_COMPONENT_CATEGORY
  GetHashKey("name"), -- Hash componentHash
  0, -- int metapedType
  false, -- BOOL isMP
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x5FF9A878C3D115B8", // _GET_SHOP_ITEM_COMPONENT_CATEGORY
  GetHashKey("name"), // Hash componentHash
  0, // int metapedType
  false, // BOOL isMP
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x5FF9A878C3D115B8, // _GET_SHOP_ITEM_COMPONENT_CATEGORY
  (uint)API.GetHashKey("name"), // Hash componentHash
  0, // int metapedType
  false // BOOL isMP
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.