VehicleClient

doesCargobobHavePickUpRope

DOES_CARGOBOB_HAVE_PICK_UP_ROPE0x1821D91AD4B56108

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

SignatureJavaScript
doesCargobobHavePickUpRope(cargobob: Vehicle): boolean
SignatureLua
doesCargobobHavePickUpRope(cargobob: Vehicle): boolean

Usage

JavaScript
const result = doesCargobobHavePickUpRope(cargobob);
Lua
local result = doesCargobobHavePickUpRope(cargobob)

Parameters

ParameterTypeJavaScriptLua
cargobobVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true only when the hook is active, will return false if the magnet is active

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL DOES_CARGOBOB_HAVE_PICK_UP_ROPE(Vehicle cargobob)
Hash
0x1821D91AD4B56108
Formerly
_IS_CARGOBOB_HOOK_ACTIVE

Open in the interactive natives reference