# ENTITY::_SET_AUTO_PICKUP

- **Hash:** `0xBD94CECFB2D65119`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetAutoPickup`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/_SET_AUTO_PICKUP

## Signature

```c
void _SET_AUTO_PICKUP(Entity entity, BOOL noPickupAnim, float autoPickupRange, float p3, float p4, BOOL enablePickupPrompt);
```

## Parameters

- `entity` (`Entity`)
- `noPickupAnim` (`BOOL`)
- `autoPickupRange` (`float`)
- `p3` (`float`)
- `p4` (`float`)
- `enablePickupPrompt` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Configures automatic pickup behavior for a carriable entity.
Typically used after TASK_CARRIABLE.
It enables auto-pickup behavior with controls for pickup animation, pickup range, and whether the pickup prompt is enabled.

*Source: VORPCORE RDR3natives*

Configures automatic pickup behavior for a carriable entity.
This native is typically used after TASK_CARRIABLE and enables auto-pickup functionality with configurable parameters such as pickup animation behavior, pickup range, and pickup prompt state

## Usage

### Lua

```lua
SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)

-- always available, by hash
Citizen.InvokeNative(0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)
```

### JavaScript

```js
SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);

// by hash
Citizen.invokeNative('0xBD94CECFB2D65119', entity, noPickupAnim, autoPickupRange + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, enablePickupPrompt);
```

### C#

```csharp
Function.Call((Hash)0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
