GetPedCollectionLocalIndexFromDrawable — RedM Natives
0x94EB1FE4 · CFX · client
Gets local index inside a collection (which can be obtained using GET_PED_COLLECTION_NAME_FROM_DRAWABLE) for the given global drawable ID. The collection name and index are used in functions like SET_PED_COLLECTION_COMPONENT_VARIATION.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The target ped |
| componentId | int | One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80) |
| drawableId | int | Global drawable ID. Same as set in [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80). Global drawable ID points to drawables as if drawables from all collections for the given component are placed into one continuous array. |
Returns
int