VehicleClient

setPickupRopeLengthForCargobob

SET_PICKUP_ROPE_LENGTH_FOR_CARGOBOB0x877C1EAEAC531023

The GTA V native SET_PICKUP_ROPE_LENGTH_FOR_CARGOBOB of the VEHICLE namespace, as LS:MP client scripts call it: the global function setPickupRopeLengthForCargobob, in JavaScript and in Lua.

SignatureJavaScript
setPickupRopeLengthForCargobob(
  cargobob: Vehicle,
  length1: number,
  length2: number,
  p3: boolean
): void
SignatureLua
setPickupRopeLengthForCargobob(
  cargobob: Vehicle,
  length1: number,
  length2: number,
  p3: boolean
)

Usage

JavaScript
setPickupRopeLengthForCargobob(cargobob, length1, length2, p3);
Lua
setPickupRopeLengthForCargobob(cargobob, length1, length2, p3)

Parameters

ParameterTypeJavaScriptLua
cargobobVehiclenumberinteger
length1floatnumbernumber
length2floatnumbernumber
p3BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

min: 1.9f, max: 100.0f

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_PICKUP_ROPE_LENGTH_FOR_CARGOBOB(Vehicle cargobob, float length1, float length2, BOOL p3)
Hash
0x877C1EAEAC531023
Formerly
_SET_CARGOBOB_HOOK_POSITION

Open in the interactive natives reference