TASK_COMBAT_PED
``` Makes the specified ped attack the target ped. p2 should be 0 p3 should be 16 ``` **This is the server-side RPC native equivalent of the client native [TASK_COMBAT_PED](?\_0xF166E48407BAC484).**
CFX
Signature
lua
TaskCombatPed(PlayerPedId(), targetPed, 0, 0)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| Ped | — | |
| int | — | |
| int | — |
Usage
lua
TaskCombatPed(PlayerPedId(), targetPed, 0, 0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
