GET_PED_SPECIFIC_TASK_TYPE
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.
CFX
Signature
lua
GetPedSpecificTaskType(PlayerPedId(), 0)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| Ped | The target ped. | |
| int | A zero-based index with a maximum value of 7. |
Usage
lua
GetPedSpecificTaskType(PlayerPedId(), 0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
