# PED::_GET_PED_HAS_INTERACTED_WITH_PLAYER

- **Hash:** `0x947E43F544B6AB34`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetPedHasInteractedWithPlayer`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_HAS_PED_INTERACTED_WITH_PLAYER_RECENTLY`
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_PED_HAS_INTERACTED_WITH_PLAYER

## Signature

```c
BOOL _GET_PED_HAS_INTERACTED_WITH_PLAYER(Ped targetPed, Player player, int flag, int durationMs);
```

## Parameters

- `targetPed` (`Ped`)
- `player` (`Player`)
- `flag` (`int`)
- `durationMs` (`int`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns whether given ped has recently interacted with a player in a specific way or not (determined by the given flag)
flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/0x947E43F544B6AB34

*Source: VORPCORE RDR3natives*

Returns whether a ped has interacted with a player recently.
flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/0x947E43F544B6AB34

## Usage

### Lua

```lua
local retval = GetPedHasInteractedWithPlayer(targetPed, player, flag, durationMs)

-- always available, by hash
local retval = Citizen.InvokeNative(0x947E43F544B6AB34, targetPed, player, flag, durationMs, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = GetPedHasInteractedWithPlayer(targetPed, player, flag, durationMs);

// by hash
const retval = Citizen.invokeNative('0x947E43F544B6AB34', targetPed, player, flag, durationMs, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x947E43F544B6AB34, targetPed, player, flag, durationMs);
```

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

## Related enums

- [0x947E43F544B6AB34](https://natives.borderlinerp.com/enums/0x947E43F544B6AB34.md) — 70 values

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
