# createLadder (Client)

> Creates a ladder peds can climb, on this client only.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/createLadder

## Syntax

```lua
element|false createLadder(float x, y, z, float height, float rotation [, bool canGetOffAtTop = true])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x, y, z` | `float` | The foot of the ladder. A `vec3` also works. |
| `height` | `float` | The ladder's height in metres, above 0 and up to 128. |
| `rotation` | `float` | The way a climber faces, in degrees. |
| `canGetOffAtTop` | `bool` | Whether a climber can get off at the top. *(default: `true`)* |

## Returns

The created `ladder` element, or `false` if it could not be created.

The ladder goes away when its element is destroyed or the resource that created it stops.

## Example

```lua
local ladder = createLadder(2490.5, -1670.2, 13.3, 6, 90)
```

## See also

- [destroyElement (Shared)](https://wiki.mymp.gg/en/destroyElement.md): Destroys an element and all of its children. Before it goes, each one fires onElementDestroy on the server or onClientElementDestroy on the client.
- [createObject (Client)](https://wiki.mymp.gg/en/createObject-client.md): Creates an object that exists on this client only.
