RedM Natives

_GET_PED_HAS_INTERACTED_WITH_PLAYER

Returns whether given ped has recently interacted with a player in a specific way or not (determined by the given flag)

Hash0x947E43F544B6AB34
Runtime nameGetPedHasInteractedWithPlayer
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_HAS_PED_INTERACTED_WITH_PLAYER_RECENTLY

Signature

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

Parameters

NameTypeDescription
targetPedPed—
playerPlayer—
flagint—
durationMsint—

Returns BOOL

Description

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

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
local retval = GetPedHasInteractedWithPlayer(targetPed, player, flag, durationMs)

-- always works, by hash
local retval = Citizen.InvokeNative(0x947E43F544B6AB34, targetPed, player, flag, durationMs, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetPedHasInteractedWithPlayer(targetPed, player, flag, durationMs);

// by hash
const retval = Citizen.invokeNative('0x947E43F544B6AB34', targetPed, player, flag, durationMs, Citizen.returnResultAnyway());
C#
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.

Enums and flags

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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