TASK_DUEL
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);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | Any | — |
p2 | float | — |
entity | Entity | — |
p4 | float | — |
p5 | int | — |
vPosOpponentX | float | — |
vPosOpponentY | float | — |
vPosOpponentZ | float | — |
fOpponentHead | float | — |
p10 | int | — |
Returns void
Description
Params: p4 either 0.2f, 0.25f, 0.31f, 0.4f
Usage
TaskDuel(ped, p1, p2, entity, p4, p5, vPosOpponentX, vPosOpponentY, vPosOpponentZ, fOpponentHead, p10)
-- always works, by hash
Citizen.InvokeNative(0x5D5B0D5BC3626E5A, ped, p1, p2, entity, p4, p5, vPosOpponentX, vPosOpponentY, vPosOpponentZ, fOpponentHead, p10)JavaScript and C#
TaskDuel(ped, p1, p2, entity, p4, p5, vPosOpponentX, vPosOpponentY, vPosOpponentZ, fOpponentHead, p10);
// by hash
Citizen.invokeNative('0x5D5B0D5BC3626E5A', ped, p1, p2 + 0.0000001, entity, p4 + 0.0000001, p5, vPosOpponentX + 0.0000001, vPosOpponentY + 0.0000001, vPosOpponentZ + 0.0000001, fOpponentHead + 0.0000001, p10);Function.Call((Hash)0x5D5B0D5BC3626E5A, ped, p1, p2, entity, p4, p5, vPosOpponentX, vPosOpponentY, vPosOpponentZ, fOpponentHead, p10);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.