ObjectClient

setPortablePickupPersist

SET_PORTABLE_PICKUP_PERSIST0x46F3ADD1E2D5BAF2

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pickupPickupnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void SET_PORTABLE_PICKUP_PERSIST(Pickup pickup, BOOL toggle)
Hash
0x46F3ADD1E2D5BAF2
Introduced
Game build 877 legacy numbering

Open in the interactive natives reference