The Lab
PED native

SET_PED_COMBAT_ATTRIBUTES

returns void3 paramsbuild 1207

Enables or disables the combat attribute attributeIndex on ped, which shapes how it fights.

Signature

C
void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeIndex, BOOL enabled); // 0x9F7794730795E019 b1207

Parameters

#NameType
1pedPed
2attributeIndexint
3enabledBOOL

Facts

Facts about SET_PED_COMBAT_ATTRIBUTES
Name
SET_PED_COMBAT_ATTRIBUTES
Hash
0x9F7794730795E019
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x9F7794730795E019, -- SET_PED_COMBAT_ATTRIBUTES
  PlayerPedId(), -- Ped ped
  0, -- int attributeIndex
  false -- BOOL enabled
)
JavaScript
Citizen.invokeNative("0x9F7794730795E019", // SET_PED_COMBAT_ATTRIBUTES
  PlayerPedId(), // Ped ped
  0, // int attributeIndex
  false // BOOL enabled
);
C#
Function.Call((Hash)0x9F7794730795E019, // SET_PED_COMBAT_ATTRIBUTES
  API.PlayerPedId(), // Ped ped
  0, // int attributeIndex
  false // BOOL enabled
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.