setPickupRopeLengthForCargobob
SET_PICKUP_ROPE_LENGTH_FOR_CARGOBOB0x877C1EAEAC531023The 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.
setPickupRopeLengthForCargobob(
cargobob: Vehicle,
length1: number,
length2: number,
p3: boolean
): voidsetPickupRopeLengthForCargobob(
cargobob: Vehicle,
length1: number,
length2: number,
p3: boolean
)Usage
JavaScript
setPickupRopeLengthForCargobob(cargobob, length1, length2, p3);Lua
setPickupRopeLengthForCargobob(cargobob, length1, length2, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cargobob | Vehicle | number | integer |
length1 | float | number | number |
length2 | float | number | number |
p3 | BOOL | boolean | boolean |
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