RedM Natives

TASK_COMBAT_PED

Makes the specified ped attack the target ped.

Hash0xCB0D8932
Runtime nameTaskCombatPed
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void TASK_COMBAT_PED(Ped ped, Ped targetPed, int p2, int p3);

Parameters

NameTypeDescription
pedPed—
targetPedPed—
p2int—
p3int—

Returns void

Description

Cfx.re native reference

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.

Usage

Lua
TaskCombatPed(ped, targetPed, p2, p3)

-- always works, by hash
Citizen.InvokeNative(0xcb0d8932, ped, targetPed, p2, p3)
JavaScript and C#
JavaScript
TaskCombatPed(ped, targetPed, p2, p3);

// by hash
Citizen.invokeNative('0xcb0d8932', ped, targetPed, p2, p3);
C#
Function.Call((Hash)0xcb0d8932, ped, targetPed, p2, p3);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.