PhysicsClient

ropeDrawEnabled

ROPE_DRAW_ENABLED0xA1AE736541B0FCA3

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

SignatureJavaScript
ropeDrawEnabled(ropeId: number, p1: boolean): void
SignatureLua
ropeDrawEnabled(ropeId: integer, p1: 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
ropeDrawEnabled(ropeId, p1);
Lua
ropeDrawEnabled(ropeId, p1)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Physics PHYSICS
In the game
void ROPE_DRAW_ENABLED(int* ropeId, BOOL p1)
Hash
0xA1AE736541B0FCA3
Introduced
Game build 1868 legacy numbering

Open in the interactive natives reference