RedM Natives

SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL

Maximum amount of pickup models that can be disallowed is 10.

Hash0x88EAEC617CD26926
Runtime nameSetLocalPlayerPermittedToCollectPickupsWithModel
NamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x88EAEC617CD26926

Signature

void SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL(Hash modelHash, BOOL toggle);

Parameters

NameTypeDescription
modelHashHash—
toggleBOOL—

Returns void

Description

Maximum amount of pickup models that can be disallowed is 10.

Old name: _SET_LOCAL_PLAYER_CAN_USE_PICKUPS_WITH_THIS_MODEL

Usage

Lua
SetLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle)

-- always works, by hash
Citizen.InvokeNative(0x88EAEC617CD26926, modelHash, toggle)
JavaScript and C#
JavaScript
SetLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle);

// by hash
Citizen.invokeNative('0x88EAEC617CD26926', modelHash, toggle);
C#
Function.Call((Hash)0x88EAEC617CD26926, modelHash, toggle);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.