createLadder
Client
Creates a ladder peds can climb, on this client only.
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
local ladder = createLadder(2490.5, -1670.2, 13.3, 6, 90)