ropeGetDistanceBetweenEnds
ROPE_GET_DISTANCE_BETWEEN_ENDS0x73040398DFF9A4A6The 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.
ropeGetDistanceBetweenEnds(ropeId: number): numberropeGetDistanceBetweenEnds(ropeId: integer): numberUsage
JavaScript
const value = ropeGetDistanceBetweenEnds(ropeId);Lua
local value = ropeGetDistanceBetweenEnds(ropeId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ropeId | int | number | integer |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Physics PHYSICS
- In the game
float ROPE_GET_DISTANCE_BETWEEN_ENDS(int ropeId)- Hash
0x73040398DFF9A4A6- Formerly
_GET_ROPE_LENGTH