PhysicsClient

pinRopeVertex

PIN_ROPE_VERTEX0x2B320CF14146B69A

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

SignatureJavaScript
pinRopeVertex(
  ropeId: number,
  vertex: number,
  x: number,
  y: number,
  z: number
): void
SignatureLua
pinRopeVertex(
  ropeId: integer,
  vertex: integer,
  x: number,
  y: number,
  z: number
)

Usage

JavaScript
pinRopeVertex(ropeId, vertex, x, y, z);
Lua
pinRopeVertex(ropeId, vertex, x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
pinRopeVertex(ropeId, vertex, pos);
Lua · with vectors
pinRopeVertex(ropeId, vertex, pos)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger
vertexintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Physics PHYSICS
In the game
void PIN_ROPE_VERTEX(int ropeId, int vertex, float x, float y, float z)
Hash
0x2B320CF14146B69A

Open in the interactive natives reference