PhysicsClient

ropeGetDistanceBetweenEnds

ROPE_GET_DISTANCE_BETWEEN_ENDS0x73040398DFF9A4A6

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

SignatureJavaScript
ropeGetDistanceBetweenEnds(ropeId: number): number
SignatureLua
ropeGetDistanceBetweenEnds(ropeId: integer): number

Usage

JavaScript
const value = ropeGetDistanceBetweenEnds(ropeId);
Lua
local value = ropeGetDistanceBetweenEnds(ropeId)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Physics PHYSICS
In the game
float ROPE_GET_DISTANCE_BETWEEN_ENDS(int ropeId)
Hash
0x73040398DFF9A4A6
Formerly
_GET_ROPE_LENGTH

Open in the interactive natives reference