ObjectClient

setLocalPlayerPermittedToCollectPickupsWithModel

SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL0x88EAEC617CD26926

The 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.

SignatureJavaScript
setLocalPlayerPermittedToCollectPickupsWithModel(
  modelHash: Hash,
  toggle: boolean
): void
SignatureLua
setLocalPlayerPermittedToCollectPickupsWithModel(
  modelHash: Hash,
  toggle: boolean
)

Usage

JavaScript
setLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle);
Lua
setLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference