# getPedSimplestTask (Client)

> Gets the simplest task the ped is running right now.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Peds
- **URL**: https://wiki.mymp.gg/en/getPedSimplestTask

## Syntax

```lua
string|false getPedSimplestTask(ped ped)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |

## Returns

The task's name, such as `TASK_SIMPLE_PLAYER_ON_FOOT`, or `false` if the ped has no active task.

## Example

```lua
addEventHandler("onClientRender", root, function()
    dxDrawText(tostring(getPedSimplestTask(localPlayer)), 20, 300)
end)
```

## See also

- [getPedTask (Client)](https://wiki.mymp.gg/en/getPedTask.md): Gets the task a ped runs in a slot and all its subtasks.
- [isPedDoingTask (Client)](https://wiki.mymp.gg/en/isPedDoingTask.md): Tells whether a ped is running a task, in any slot and at any subtask level.
- [getPedMoveState (Client)](https://wiki.mymp.gg/en/getPedMoveState.md): Tells how a ped on foot is moving.
