# TASK::_GET_ITEM_INTERACTION_ENTITY_FROM_PED

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

## Signature

```c
Entity _GET_ITEM_INTERACTION_ENTITY_FROM_PED(Ped ped, Hash item);
```

## Parameters

- `ped` (`Ped`)
- `item` (`Hash`)

## Returns

`Entity`

## Description

item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND
http://prntscr.com/1qtp3bz
https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ITEM_INTERACTION

## Usage

### Lua

```lua
local retval = GetItemInteractionEntityFromPed(ped, item)

-- always available, by hash
local retval = Citizen.InvokeNative(0x05A0100EA714DB68, ped, item, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetItemInteractionEntityFromPed(ped, item);

// by hash
const retval = Citizen.invokeNative('0x05A0100EA714DB68', ped, item, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x05A0100EA714DB68, ped, item);
```

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