The Lab
TASK native

TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED

returns void4 paramsbuild 1207

Tasks ped to fight hated targets within radius for time milliseconds.

Signature

C
void TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED(Ped ped, float radius, int time, int flags); // 0x2BBA30B854534A0C b1207

Parameters

#NameType
1pedPed
2radiusfloat
3timeint
4flagsint

Facts

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

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