The Lab
TASK native

TASK_DUEL

returns void11 paramsbuild 1207

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

Tasks ped to take part in a duel against the opponent at the given position.

Signature

C
void TASK_DUEL(Ped ped, Any p1, float p2, Entity entity, float p4, int p5, float vPosOpponentX, float vPosOpponentY, float vPosOpponentZ, float fOpponentHead, int p10); // 0x5D5B0D5BC3626E5A b1207

Parameters

#NameType
1pedPed
2p1Any
3p2float
4entityEntity
5p4float
6p5int
7vPosOpponentXfloat
8vPosOpponentYfloat
9vPosOpponentZfloat
10fOpponentHeadfloat
11p10int

Facts

Facts about TASK_DUEL
Name
TASK_DUEL
Hash
0x5D5B0D5BC3626E5A
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x5D5B0D5BC3626E5A, -- TASK_DUEL
  PlayerPedId(), -- Ped ped
  0, -- Any p1
  0.0, -- float p2
  PlayerPedId(), -- Entity entity
  0.0, -- float p4
  0, -- int p5
  0.0, -- float vPosOpponentX
  0.0, -- float vPosOpponentY
  0.0, -- float vPosOpponentZ
  0.0, -- float fOpponentHead
  0 -- int p10
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x5D5B0D5BC3626E5A", // TASK_DUEL
  PlayerPedId(), // Ped ped
  0, // Any p1
  0.0, // float p2
  PlayerPedId(), // Entity entity
  0.0, // float p4
  0, // int p5
  0.0, // float vPosOpponentX
  0.0, // float vPosOpponentY
  0.0, // float vPosOpponentZ
  0.0, // float fOpponentHead
  0 // int p10
);
C#
Function.Call((Hash)0x5D5B0D5BC3626E5A, // TASK_DUEL
  API.PlayerPedId(), // Ped ped
  0, // Any p1
  0.0f, // float p2
  API.PlayerPedId(), // Entity entity
  0.0f, // float p4
  0, // int p5
  0.0f, // float vPosOpponentX
  0.0f, // float vPosOpponentY
  0.0f, // float vPosOpponentZ
  0.0f, // float fOpponentHead
  0 // int p10
);
All TASK natives

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