PhysicsClient

isRopeAttachedAtBothEnds

IS_ROPE_ATTACHED_AT_BOTH_ENDS0x84DE3B5FB3E666F0

The GTA V native IS_ROPE_ATTACHED_AT_BOTH_ENDS of the PHYSICS namespace, as LS:MP client scripts call it: the global function isRopeAttachedAtBothEnds, in JavaScript and in Lua.

SignatureJavaScript
isRopeAttachedAtBothEnds(ropeId: number): boolean
SignatureLua
isRopeAttachedAtBothEnds(ropeId: integer): boolean
⚠
Known issue

The value of ropeId does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
const result = isRopeAttachedAtBothEnds(ropeId);
Lua
local result = isRopeAttachedAtBothEnds(ropeId)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Physics PHYSICS
In the game
BOOL IS_ROPE_ATTACHED_AT_BOTH_ENDS(int* ropeId)
Hash
0x84DE3B5FB3E666F0

Open in the interactive natives reference