ObjectClient

setLocalPlayerCanCollectPortablePickups

SET_LOCAL_PLAYER_CAN_COLLECT_PORTABLE_PICKUPS0x78857FC65CADB909

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

SignatureJavaScript
setLocalPlayerCanCollectPortablePickups(toggle: boolean): void
SignatureLua
setLocalPlayerCanCollectPortablePickups(toggle: boolean)

Usage

JavaScript
setLocalPlayerCanCollectPortablePickups(toggle);
Lua
setLocalPlayerCanCollectPortablePickups(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void SET_LOCAL_PLAYER_CAN_COLLECT_PORTABLE_PICKUPS(BOOL toggle)
Hash
0x78857FC65CADB909

Open in the interactive natives reference