The Lab
TASK native

_TASK_COMBAT_PED_AT_COORDS

returns void6 paramsbuild 1207

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

Tasks ped to fight near the coordinates (x, y, z).

Signature

C
void _TASK_COMBAT_PED_AT_COORDS(Ped ped, float x, float y, float z, int p4, int p5); // 0xC624414FA748B9BA b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat
5p4int
6p5int

Facts

Facts about _TASK_COMBAT_PED_AT_COORDS
Name
_TASK_COMBAT_PED_AT_COORDS
Hash
0xC624414FA748B9BA
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(0xC624414FA748B9BA, -- _TASK_COMBAT_PED_AT_COORDS
  PlayerPedId(), -- Ped ped
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0, -- int p4
  0 -- int p5
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC624414FA748B9BA", // _TASK_COMBAT_PED_AT_COORDS
  PlayerPedId(), // Ped ped
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int p4
  0 // int p5
);
C#
Function.Call((Hash)0xC624414FA748B9BA, // _TASK_COMBAT_PED_AT_COORDS
  API.PlayerPedId(), // Ped ped
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0, // int p4
  0 // int p5
);
All TASK natives

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