GetPedCollectionNameFromProp — RedM Natives
0x8ED0C17 · CFX · client
Gets collection name for the given global prop index. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP is used to get collection and local index (inside the given collection) of the prop. 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
char*