PhysicsClient

ropeForceLength

ROPE_FORCE_LENGTH0xD009F759A723DB1B

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

SignatureJavaScript
ropeForceLength(ropeId: number, length: number): void
SignatureLua
ropeForceLength(ropeId: integer, length: number)

Usage

JavaScript
ropeForceLength(ropeId, length);
Lua
ropeForceLength(ropeId, length)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger
lengthfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Forces a rope to a certain length.

Reference

Namespace
Physics PHYSICS
In the game
void ROPE_FORCE_LENGTH(int ropeId, float length)
Hash
0xD009F759A723DB1B

Open in the interactive natives reference