{"hash":"0x5FF9A878C3D115B8","ns":"PED","name":"_GET_SHOP_ITEM_COMPONENT_CATEGORY","slug":"_GET_SHOP_ITEM_COMPONENT_CATEGORY","official":false,"named":true,"luaName":"GetShopItemComponentCategory","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"componentHash","type":"Hash"},{"name":"metapedType","type":"int"},{"name":"isMP","type":"BOOL"}],"summary":"","descriptions":[{"source":"femga","format":"pre","body":"0x5FF9A878C3D115B8     (by Disquse)\n\nUse this to get the category of a ped component.\nif your player is mp_male replace \"VALUE\" with false, and if its mp_female replace it with true.\nint category = Function.Call<int>((Hash)0x5FF9A878C3D115B8, hash, VALUE, true);"}],"examples":[],"aliases":[],"enums":["eMetaPedType"],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_COMPONENT_CATEGORY","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_COMPONENT_CATEGORY.md","snippets":{"lua":"local retval = GetShopItemComponentCategory(componentHash, metapedType, isMP)","luaInvoke":"local retval = Citizen.InvokeNative(0x5FF9A878C3D115B8, componentHash, metapedType, isMP, Citizen.ResultAsInteger())","js":"const retval = GetShopItemComponentCategory(componentHash, metapedType, isMP);","jsInvoke":"const retval = Citizen.invokeNative('0x5FF9A878C3D115B8', componentHash, metapedType, isMP, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x5FF9A878C3D115B8, componentHash, metapedType, isMP);","notes":["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."]}}