# OBJECT::SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL

- **Hash:** `0x88EAEC617CD26926`
- **Namespace:** OBJECT
- **Runtime name (Lua/JS):** `SetLocalPlayerPermittedToCollectPickupsWithModel`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/OBJECT/SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL

## Signature

```c
void SET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL(Hash modelHash, BOOL toggle);
```

## Parameters

- `modelHash` (`Hash`)
- `toggle` (`BOOL`)

## 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

```lua
SetLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle)

-- always available, by hash
Citizen.InvokeNative(0x88EAEC617CD26926, modelHash, toggle)
```

### JavaScript

```js
SetLocalPlayerPermittedToCollectPickupsWithModel(modelHash, toggle);

// by hash
Citizen.invokeNative('0x88EAEC617CD26926', modelHash, toggle);
```

### C#

```csharp
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.*
