VehicleClient

doesCargobobHavePickupMagnet

DOES_CARGOBOB_HAVE_PICKUP_MAGNET0x6E08BF5B3722BAC9

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

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

Usage

JavaScript
const result = doesCargobobHavePickupMagnet(cargobob);
Lua
local result = doesCargobobHavePickupMagnet(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 magnet is active, will return false if the hook is active

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL DOES_CARGOBOB_HAVE_PICKUP_MAGNET(Vehicle cargobob)
Hash
0x6E08BF5B3722BAC9
Formerly
_IS_CARGOBOB_MAGNET_ACTIVE _DOES_CARGOBOB_HAVE_PICKUP_MAGNET

Open in the interactive natives reference