PhysicsClient

ropeResetLength

ROPE_RESET_LENGTH0xC16DE94D9BEA14A0

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

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

Usage

JavaScript
ropeResetLength(ropeId, length);
Lua
ropeResetLength(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.

Reset a rope to a certain length.

Reference

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

Open in the interactive natives reference