RedM Natives

SET_PED_COMBAT_ATTRIBUTES

Hash0x9F7794730795E019
Runtime nameSetPedCombatAttributes
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9F7794730795E019

Signature

void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeIndex, BOOL enabled);

Parameters

NameTypeDescription
pedPed—
attributeIndexint—
enabledBOOL—

Returns void

Description

attributeIndex: https://alloc8or.re/rdr3/doc/enums/eCombatAttribute.txt
https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_ATTRIBUTES

Usage

Lua
SetPedCombatAttributes(ped, attributeIndex, enabled)

-- always works, by hash
Citizen.InvokeNative(0x9F7794730795E019, ped, attributeIndex, enabled)
JavaScript and C#
JavaScript
SetPedCombatAttributes(ped, attributeIndex, enabled);

// by hash
Citizen.invokeNative('0x9F7794730795E019', ped, attributeIndex, enabled);
C#
Function.Call((Hash)0x9F7794730795E019, ped, attributeIndex, enabled);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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