GetPedSpecificTaskType — FiveM Natives
0x7F4563D3 · CFX · server
Gets the type of a ped's specific task given an index of the CPedTaskSpecificDataNode nodes. A ped will typically have a task at index 0, if a ped has multiple tasks at once they will be in the order 0, 1, 2, etc.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The target ped. |
| index | int | A zero-based index with a maximum value of 7. |
Returns
int