M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
x, y, zfloatThe foot of the ladder. A vec3 also works.
heightfloatThe ladder's height in metres, above 0 and up to 128.
rotationfloatThe way a climber faces, in degrees.
canGetOffAtTopboolWhether 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)

See also