_GET_CATEGORY_OF_COMPONENT_AT_INDEX
Returns the category hash of the component at componentIndex on ped.
Signature
Hash _GET_CATEGORY_OF_COMPONENT_AT_INDEX(Ped ped, int componentIndex, Any p2); // 0x9B90842304C938A7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | componentIndex | int |
| 3 | p2 | Any |
Facts
| 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.
local hash = Citizen.InvokeNative(0x9B90842304C938A7, -- _GET_CATEGORY_OF_COMPONENT_AT_INDEX
PlayerPedId(), -- Ped ped
0, -- int componentIndex
0, -- Any p2
Citizen.ResultAsInteger()
)
print(hash)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)int hash = Function.Call<int>((Hash)0x9B90842304C938A7, // _GET_CATEGORY_OF_COMPONENT_AT_INDEX
API.PlayerPedId(), // Ped ped
0, // int componentIndex
0 // Any p2
);Related PED natives
- _GET_PED_COMPONENT_CATEGORY_BY_INDEX
- _GET_SHOP_ITEM_COMPONENT_AT_INDEX
- _GET_SHOP_ITEM_COMPONENT_CATEGORY
- _GET_BLOCKING_OF_NON_TEMPORARY_EVENTS
- _GET_LASSOER_OF_PED
- _GET_NUM_COMPONENT_CATEGORIES_IN_PED
- _GET_PED_INDEX_FROM_PERSCHAR_HASH
- _GET_PED_RAGDOLL_BONE_INDEX
- _GET_RIDER_OF_MOUNT
- _GET_SHOP_ITEM_HAT_COMPONENT
- _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
- GET_PED_BONE_INDEX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.