createSWATRope | Multi Theft Auto: Wiki Skip to content

createSWATRope

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Creates a SWAT rope like that of the rope in single player used by SWAT Teams abseiling from the Police Maverick.

Syntax

createSWATRope ( )

Code Examples

client

This example creates a Swat rope in police maverick when you use the command /createrope

function SwatRope()
local myVehicle = getPedOccupiedVehicle(localPlayer)
if myVehicle and getVehicleName(myVehicle) == "Police Maverick" then
local x,y,z = getElementPosition(myVehicle)
createSWATRope(x, y, z, 11111)
end
end
addCommandHandler("createrope", SwatRope)

See Also

World Functions