PhysicsClient

doesScriptOwnRope

DOES_SCRIPT_OWN_ROPE0x271C9D3ACA5D6409

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

SignatureJavaScript
doesScriptOwnRope(ropeId: number): boolean
SignatureLua
doesScriptOwnRope(ropeId: integer): boolean

Usage

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

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Physics PHYSICS
In the game
BOOL DOES_SCRIPT_OWN_ROPE(int ropeId)
Hash
0x271C9D3ACA5D6409
Formerly
_DOES_ROPE_BELONG_TO_THIS_SCRIPT

Open in the interactive natives reference