ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. createSWATRope

Function

createSWATRope

ServerLightsIdentical to MTA:SA

Creates a rope that a SWAT team rappels down from a helicopter. The rope element disappears by itself after the given time.

Syntax

element createSWATRope(float x, float y, float z [, int duration = 4000])

Arguments

xfloat
Rope anchor X.
yfloat
Anchor Y.
zfloat
Anchor Z.
durationint, optional = 4000
Lifetime in ms.

Returns

A rope element, or false.

Example

createSWATRope(2495, -1665, 30, 6000)

Notes

Limitation. The rope is not drawn in the game yet.