The Lab
PED native

_IS_TARGET

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to return true if targetPed is a target of ped.

Signature

C
BOOL _IS_TARGET(Ped ped, Ped targetPed); // 0x6E5CBCB3941D7D08 b1207

Parameters

#NameType
1pedPed
2targetPedPed

Facts

Facts about _IS_TARGET
Name
_IS_TARGET
Hash
0x6E5CBCB3941D7D08
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(0x6E5CBCB3941D7D08, -- _IS_TARGET
  PlayerPedId(), -- Ped ped
  PlayerPedId() -- Ped targetPed
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x6E5CBCB3941D7D08", // _IS_TARGET
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped targetPed
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x6E5CBCB3941D7D08, // _IS_TARGET
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId() // Ped targetPed
);
All PED natives

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