setPortablePickupPersist
SET_PORTABLE_PICKUP_PERSIST0x46F3ADD1E2D5BAF2The 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.
setPortablePickupPersist(pickup: Pickup, toggle: boolean): voidsetPortablePickupPersist(pickup: Pickup, toggle: boolean)Usage
JavaScript
setPortablePickupPersist(pickup, toggle);Lua
setPortablePickupPersist(pickup, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pickup | Pickup | number | integer |
toggle | BOOL | boolean | boolean |
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