_GET_PED_COMPONENT_CATEGORY_BY_INDEX
Returns the hash of the component category at index on ped.
Signature
Hash _GET_PED_COMPONENT_CATEGORY_BY_INDEX(Ped ped, int index); // 0xCCB97B51893C662F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | index | int |
Facts
| 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.
local hash = Citizen.InvokeNative(0xCCB97B51893C662F, -- _GET_PED_COMPONENT_CATEGORY_BY_INDEX
PlayerPedId(), -- Ped ped
0, -- int index
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0xCCB97B51893C662F", // _GET_PED_COMPONENT_CATEGORY_BY_INDEX
PlayerPedId(), // Ped ped
0, // int index
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0xCCB97B51893C662F, // _GET_PED_COMPONENT_CATEGORY_BY_INDEX
API.PlayerPedId(), // Ped ped
0 // int index
);Related PED natives
- _GET_CATEGORY_OF_COMPONENT_AT_INDEX
- _GET_PED_INDEX_FROM_PERSCHAR_HASH
- _GET_PED_RAGDOLL_BONE_INDEX
- _GET_PED_WHO_HOGITIED_THIS_PED
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_NUM_COMPONENT_CATEGORIES_IN_PED
- _GET_SHOP_ITEM_COMPONENT_AT_INDEX
- _GET_SHOP_ITEM_COMPONENT_CATEGORY
- _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
- _GET_PED_COMBAT_ATTRIBUTE
- _GET_PED_COMBAT_SPEED
- _GET_PED_CAN_BE_INCAPACITATED_THIS_FRAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.