getRopeLastVertexCoord
GET_ROPE_LAST_VERTEX_COORD0x21BB0FBD3E217C2DThe 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.
getRopeLastVertexCoord(ropeId: number): { x: number, y: number, z: number }getRopeLastVertexCoord(ropeId: integer): Vector3Usage
JavaScript
const { x, y, z } = getRopeLastVertexCoord(ropeId);Lua
local coords = getRopeLastVertexCoord(ropeId)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ropeId | int | number | integer |
Returns
Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3A 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