setLocalPlayerPermittedToCollectPickupsWithModel
SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL0x88EAEC617CD26926The GTA V native SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL of the OBJECT namespace, as LS:MP client scripts call it: the global function setLocalPlayerPermittedToCollectPickupsWithModel, in JavaScript and in Lua.
setLocalPlayerPermittedToCollectPickupsWithModel(
modelHash: Hash,
toggle: boolean
): voidsetLocalPlayerPermittedToCollectPickupsWithModel(
modelHash: Hash,
toggle: boolean
)Usage
JavaScript
setLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle);Lua
setLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modelHash | Hash | number | integer |
toggle | BOOL | boolean | boolean |
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.
Maximum amount of pickup models that can be disallowed is 30.
Reference
- Namespace
- Object OBJECT
- In the game
void SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL(Hash modelHash, BOOL toggle)- Hash
0x88EAEC617CD26926- Formerly
_SET_LOCAL_PLAYER_CAN_USE_PICKUPS_WITH_THIS_MODEL