TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED
Hash
0x2BBA30B854534A0CRuntime name
TaskCombatHatedTargetsAroundPedTimedNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x2BBA30B854534A0CSignature
void TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED(Ped ped, float radius, int time, int flags);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
radius | float | — |
time | int | — |
flags | int | — |
Returns void
Usage
TaskCombatHatedTargetsAroundPedTimed(ped, radius, time, flags)
-- always works, by hash
Citizen.InvokeNative(0x2BBA30B854534A0C, ped, radius, time, flags)JavaScript and C#
TaskCombatHatedTargetsAroundPedTimed(ped, radius, time, flags);
// by hash
Citizen.invokeNative('0x2BBA30B854534A0C', ped, radius + 0.0000001, time, flags);Function.Call((Hash)0x2BBA30B854534A0C, ped, radius, time, flags);- 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.