ObjectClient

allowAllPlayersToCollectPickupsOfType

ALLOW_ALL_PLAYERS_TO_COLLECT_PICKUPS_OF_TYPE0xFDC07C58E8AAB715

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

SignatureJavaScript
allowAllPlayersToCollectPickupsOfType(pickupHash: Hash): void
SignatureLua
allowAllPlayersToCollectPickupsOfType(pickupHash: Hash)

Usage

JavaScript
allowAllPlayersToCollectPickupsOfType(pickupHash);
Lua
allowAllPlayersToCollectPickupsOfType(pickupHash)

Parameters

ParameterTypeJavaScriptLua
pickupHashHashnumberinteger

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.

Reference

Namespace
Object OBJECT
In the game
void ALLOW_ALL_PLAYERS_TO_COLLECT_PICKUPS_OF_TYPE(Hash pickupHash)
Hash
0xFDC07C58E8AAB715
Introduced
Game build 1734 legacy numbering

Open in the interactive natives reference