PhysicsClient

getRopeLastVertexCoord

GET_ROPE_LAST_VERTEX_COORD0x21BB0FBD3E217C2D

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

SignatureJavaScript
getRopeLastVertexCoord(ropeId: number): { x: number, y: number, z: number }
SignatureLua
getRopeLastVertexCoord(ropeId: integer): Vector3

Usage

JavaScript
const { x, y, z } = getRopeLastVertexCoord(ropeId);
Lua
local coords = getRopeLastVertexCoord(ropeId)
-- coords.x, coords.y, coords.z

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
Physics PHYSICS
In the game
Vector3 GET_ROPE_LAST_VERTEX_COORD(int ropeId)
Hash
0x21BB0FBD3E217C2D

Open in the interactive natives reference