The Lab
PED native

_GET_PED_COMPONENT_CATEGORY_BY_INDEX

returns Hash2 paramsbuild 1207

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

Signature

C
Hash _GET_PED_COMPONENT_CATEGORY_BY_INDEX(Ped ped, int index); // 0xCCB97B51893C662F b1207

Parameters

#NameType
1pedPed
2indexint

Facts

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

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