doesCargobobHavePickupMagnet
DOES_CARGOBOB_HAVE_PICKUP_MAGNET0x6E08BF5B3722BAC9The 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.
doesCargobobHavePickupMagnet(cargobob: Vehicle): booleandoesCargobobHavePickupMagnet(cargobob: Vehicle): booleanUsage
JavaScript
const result = doesCargobobHavePickupMagnet(cargobob);Lua
local result = doesCargobobHavePickupMagnet(cargobob)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cargobob | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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