SET_PED_COMBAT_ATTRIBUTES
Enables or disables the combat attribute attributeIndex on ped, which shapes how it fights.
Signature
void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeIndex, BOOL enabled); // 0x9F7794730795E019 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | attributeIndex | int |
| 3 | enabled | BOOL |
Facts
| 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.
Citizen.InvokeNative(0x9F7794730795E019, -- SET_PED_COMBAT_ATTRIBUTES
PlayerPedId(), -- Ped ped
0, -- int attributeIndex
false -- BOOL enabled
)Citizen.invokeNative("0x9F7794730795E019", // SET_PED_COMBAT_ATTRIBUTES
PlayerPedId(), // Ped ped
0, // int attributeIndex
false // BOOL enabled
);Function.Call((Hash)0x9F7794730795E019, // SET_PED_COMBAT_ATTRIBUTES
API.PlayerPedId(), // Ped ped
0, // int attributeIndex
false // BOOL enabled
);Related PED natives
- SET_PED_COMBAT_ABILITY
- SET_PED_COMBAT_MOVEMENT
- SET_PED_COMBAT_RANGE
- SET_PED_FLEE_ATTRIBUTES
- SET_PED_SHOULD_PLAY_COMBAT_SCENARIO_EXIT
- SET_PED_CONFIG_FLAG
- SET_PED_CAN_ARM_IK
- SET_PED_CAN_BE_INCAPACITATED
- SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE
- SET_PED_CAN_BE_TARGETTED
- SET_PED_CAN_BE_TARGETTED_BY_PLAYER
- SET_PED_CAN_BE_TARGETTED_BY_TEAM
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.