GetPedCollectionNameFromDrawable — FiveM Natives
0xD6BBA48B · CFX · client
Gets collection name for the given global drawable ID. Together with GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE is used to get collection and local index (inside the given collection) of the drawable. 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
char*