The Lab
TASK native

TASK_CONFRONT

returns BOOL3 paramsbuild 1207

Tasks ped to confront targetPed. Returns true on success.

Signature

C
BOOL TASK_CONFRONT(Ped ped, Ped targetPed, int p2); // 0x3A2A2071DF5CC569 b1207

Parameters

#NameType
1pedPed
2targetPedPed
3p2int

Facts

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

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