TASK_DUEL
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | Any |
| 3 | p2 | float |
| 4 | entity | Entity |
| 5 | p4 | float |
| 6 | p5 | int |
| 7 | vPosOpponentX | float |
| 8 | vPosOpponentY | float |
| 9 | vPosOpponentZ | float |
| 10 | fOpponentHead | float |
| 11 | p10 | int |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_MOUNTED_WEAPON_TASK_UNDERNEATH_DRIVING_TASK
- TASK_DUCK
- TASK_DUMP_CARRIABLE_FROM_PARENT
- TASK_DISEMBARK_NEAREST_TRAIN_CARRIAGE
- TASK_DISMOUNT_ANIMAL
- TASK_DRIVE_BY
- TASK_ACHIEVE_HEADING
- TASK_AIM_AT_COORD
- TASK_AIM_AT_ENTITY
- TASK_AIM_GUN_AT_COORD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.