ObjectClient

allowPickupByNoneParticipant

ALLOW_PICKUP_BY_NONE_PARTICIPANT0xAA059C615DE9DD03

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

SignatureJavaScript
allowPickupByNoneParticipant(pickup: Pickup, toggle: boolean): void
SignatureLua
allowPickupByNoneParticipant(pickup: Pickup, toggle: boolean)

Usage

JavaScript
allowPickupByNoneParticipant(pickup, toggle);
Lua
allowPickupByNoneParticipant(pickup, toggle)

Parameters

ParameterTypeJavaScriptLua
pickupPickupnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void ALLOW_PICKUP_BY_NONE_PARTICIPANT(Pickup pickup, BOOL toggle)
Hash
0xAA059C615DE9DD03
Introduced
Game build 1180 legacy numbering

Open in the interactive natives reference