The Lab
PED native

_GET_CATEGORY_OF_COMPONENT_AT_INDEX

returns Hash3 paramsbuild 1207

Returns the category hash of the component at componentIndex on ped.

Signature

C
Hash _GET_CATEGORY_OF_COMPONENT_AT_INDEX(Ped ped, int componentIndex, Any p2); // 0x9B90842304C938A7 b1207

Parameters

#NameType
1pedPed
2componentIndexint
3p2Any

Facts

Facts about _GET_CATEGORY_OF_COMPONENT_AT_INDEX
Name
_GET_CATEGORY_OF_COMPONENT_AT_INDEX
Hash
0x9B90842304C938A7
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(0x9B90842304C938A7, -- _GET_CATEGORY_OF_COMPONENT_AT_INDEX
  PlayerPedId(), -- Ped ped
  0, -- int componentIndex
  0, -- Any p2
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x9B90842304C938A7", // _GET_CATEGORY_OF_COMPONENT_AT_INDEX
  PlayerPedId(), // Ped ped
  0, // int componentIndex
  0, // Any p2
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x9B90842304C938A7, // _GET_CATEGORY_OF_COMPONENT_AT_INDEX
  API.PlayerPedId(), // Ped ped
  0, // int componentIndex
  0 // Any p2
);
All PED natives

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