ObjectClient

preventCollectionOfPortablePickup

PREVENT_COLLECTION_OF_PORTABLE_PICKUP0x92AEFB5F6E294023

The GTA V native PREVENT_COLLECTION_OF_PORTABLE_PICKUP of the OBJECT namespace, as LS:MP client scripts call it: the global function preventCollectionOfPortablePickup, in JavaScript and in Lua.

SignatureJavaScript
preventCollectionOfPortablePickup(
  object: Object,
  p1: boolean,
  p2: boolean
): void
SignatureLua
preventCollectionOfPortablePickup(object: Object, p1: boolean, p2: boolean)

Usage

JavaScript
preventCollectionOfPortablePickup(object, p1, p2);
Lua
preventCollectionOfPortablePickup(object, p1, p2)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
p1BOOLbooleanboolean
p2BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void PREVENT_COLLECTION_OF_PORTABLE_PICKUP(Object object, BOOL p1, BOOL p2)
Hash
0x92AEFB5F6E294023

Open in the interactive natives reference