The Lab
PED native

_GET_PED_HAS_INTERACTED_WITH_PLAYER

returns BOOL4 paramsbuild 1207

Returns true if targetPed has interacted with player in the way described by flag within durationMs milliseconds.

Signature

C
BOOL _GET_PED_HAS_INTERACTED_WITH_PLAYER(Ped targetPed, Player player, int flag, int durationMs); // 0x947E43F544B6AB34 b1207

Parameters

#NameType
1targetPedPed
2playerPlayer
3flagint
4durationMsint

Facts

Facts about _GET_PED_HAS_INTERACTED_WITH_PLAYER
Name
_GET_PED_HAS_INTERACTED_WITH_PLAYER
Hash
0x947E43F544B6AB34
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x947E43F544B6AB34, -- _GET_PED_HAS_INTERACTED_WITH_PLAYER
  PlayerPedId(), -- Ped targetPed
  PlayerId(), -- Player player
  0, -- int flag
  0 -- int durationMs
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x947E43F544B6AB34", // _GET_PED_HAS_INTERACTED_WITH_PLAYER
  PlayerPedId(), // Ped targetPed
  PlayerId(), // Player player
  0, // int flag
  0, // int durationMs
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x947E43F544B6AB34, // _GET_PED_HAS_INTERACTED_WITH_PLAYER
  API.PlayerPedId(), // Ped targetPed
  API.PlayerId(), // Player player
  0, // int flag
  0 // int durationMs
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.