RedM Natives

SET_PED_COMBAT_MOVEMENT

0 - Stationary (Will just stand in place) 1 - Defensive (Will try to find cover and very likely to blind fire) 2 - Offensive (Will attempt to charge at enemy but take cover as well) 3 - Suicidal Offensive (Will try to flank enemy in a su…

Hash0x4D9CA1009AFBD057
Runtime nameSetPedCombatMovement
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4D9CA1009AFBD057

Signature

void SET_PED_COMBAT_MOVEMENT(Ped ped, int combatMovement);

Parameters

NameTypeDescription
pedPed—
combatMovementint—

Returns void

Description

0 - Stationary (Will just stand in place)
1 - Defensive (Will try to find cover and very likely to blind fire)
2 - Offensive (Will attempt to charge at enemy but take cover as well)
3 - Suicidal Offensive (Will try to flank enemy in a suicidal attack)

Usage

Lua
SetPedCombatMovement(ped, combatMovement)

-- always works, by hash
Citizen.InvokeNative(0x4D9CA1009AFBD057, ped, combatMovement)
JavaScript and C#
JavaScript
SetPedCombatMovement(ped, combatMovement);

// by hash
Citizen.invokeNative('0x4D9CA1009AFBD057', ped, combatMovement);
C#
Function.Call((Hash)0x4D9CA1009AFBD057, ped, combatMovement);

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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