VehicleClient

setHeliCanPickupEntityThatHasPickUpDisabled

SET_HELI_CAN_PICKUP_ENTITY_THAT_HAS_PICK_UP_DISABLED0x94A68DA412C4007D

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

SignatureJavaScript
setHeliCanPickupEntityThatHasPickUpDisabled(
  vehicle: Vehicle,
  toggle: boolean
): void
SignatureLua
setHeliCanPickupEntityThatHasPickUpDisabled(
  vehicle: Vehicle,
  toggle: boolean
)

Usage

JavaScript
setHeliCanPickupEntityThatHasPickUpDisabled(vehicle, toggle);
Lua
setHeliCanPickupEntityThatHasPickUpDisabled(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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.

Stops the cargobob from being able to attach any vehicle

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_HELI_CAN_PICKUP_ENTITY_THAT_HAS_PICK_UP_DISABLED(Vehicle vehicle, BOOL toggle)
Hash
0x94A68DA412C4007D
Introduced
Game build 1180 legacy numbering
Formerly
_SET_CARGOBOB_HOOK_CAN_ATTACH

Open in the interactive natives reference