TASK_COMBAT_PED
Makes the specified ped attack the target ped.
Signature
void TASK_COMBAT_PED(Ped ped, Ped targetPed, int p2, int p3);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetPed | Ped | — |
p2 | int | — |
p3 | int | — |
Returns void
Description
Makes the specified ped attack the target ped.
p2 should be 0
p3 should be 16This is the server-side RPC native equivalent of the client native TASK_COMBAT_PED.
Usage
TaskCombatPed(ped, targetPed, p2, p3)
-- always works, by hash
Citizen.InvokeNative(0xcb0d8932, ped, targetPed, p2, p3)JavaScript and C#
TaskCombatPed(ped, targetPed, p2, p3);
// by hash
Citizen.invokeNative('0xcb0d8932', ped, targetPed, p2, p3);Function.Call((Hash)0xcb0d8932, ped, targetPed, p2, p3);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.