The Lab
COMPENDIUM native

COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN

returns Hash2 paramsbuild 1311

Returns the compendium subcategory hash ped belongs to within category.

Signature

C
Hash COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN(Hash category, Ped ped); // 0x9B657550DF55EC96 b1311

Parameters

#NameType
1categoryHash
2pedPed

Facts

Facts about COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
Name
COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
Hash
0x9B657550DF55EC96
Namespace
Returns
Hash
Game build
1311

Examples

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

Lua
local hash = Citizen.InvokeNative(0x9B657550DF55EC96, -- COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
  GetHashKey("name"), -- Hash category
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x9B657550DF55EC96", // COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
  GetHashKey("name"), // Hash category
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x9B657550DF55EC96, // COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
  (uint)API.GetHashKey("name"), // Hash category
  API.PlayerPedId() // Ped ped
);
All COMPENDIUM natives

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