# createPed (Client)

> Creates a ped that exists on this client only.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Peds
- **URL**: https://wiki.mymp.gg/en/createPed-client
- **Counterpart**: Also exists on the server, with its own implementation: [createPed (Server)](https://wiki.mymp.gg/en/createPed-server.md)

## Syntax

```lua
ped|false createPed(string model, float x, y, z [, float rotation = 0])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `model` | `string` | The ped model's name, such as `male01`. |
| `x, y, z` | `float` | Position in the world, or a vec3. |
| `rotation` | `float` | Rotation in degrees around the Z axis. *(default: `0`)* |

## Returns

The created ped, or `false` if the model is not a ped model or the ped could not be created.

The ped starts with 100 health. Other players do not see it.

## Example

```lua
local ped = createPed("male01", 2495.0, -1685.0, 13.5, 90)
setPedEnterVehicle(ped)
```

## See also

- [createPed (Server)](https://wiki.mymp.gg/en/createPed-server.md): Creates a ped on the server, seen by every player.
- [setPedEnterVehicle (Client)](https://wiki.mymp.gg/en/setPedEnterVehicle.md): Makes a ped walk to a vehicle and get in, as if the player pressed the enter key.
- [warpPedIntoVehicle (Shared)](https://wiki.mymp.gg/en/warpPedIntoVehicle.md): Puts a ped or player straight into a vehicle seat, with no animation.
- [getPedMoveState (Client)](https://wiki.mymp.gg/en/getPedMoveState.md): Tells how a ped on foot is moving.
