GetPedCollectionLocalIndexFromProp — RedM Natives
0xFBDB885F · CFX · client
Gets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_PROP) for the given global prop index. The collection name and index are used in functions like SET_PED_COLLECTION_PROP_INDEX.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The target ped |
| anchorPoint | int | One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F) |
| propIndex | int | Global prop index. Same as set by `drawableId` in [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F). Global prop index points to prop as if props from all collections for the given component are placed into one continuous array. |
Returns
int