Knowledge from the fieldRedM

Use _DISABLE_COMBAT_ACTION_AGAINST_OTHERS (ADF_TACKLE flag 33) to block player tackling — DisableControlAction does NOT work

learning:30

Use _DISABLE_COMBAT_ACTION_AGAINST_OTHERS (ADF_TACKLE flag 33) to block player tackling — DisableControlAction does NOT work

Context

Building an anti-tackle system, I tried the obvious approach first: DisableControlAction on every grapple-related input (INPUT_MELEE_GRAPPLE 0x2277FAE9, INPUT_MELEE_GRAPPLE_ATTACK 0xADEAF48C, INPUT_MELEE_GRAPPLE_STAND_X/Y, INPUT_MELEE_GRAPPLE_CHOKE, INPUT_MELEE_GRAPPLE_REVERSAL, etc.).

It does not stop sprint-tackling. The player can still sprint into another player/ped and execute a tackle, even with all those inputs disabled.

Why

RDR2 routes sprint-tackle through INPUT_MELEE_ATTACK (0xB2F377E8) with the contextual modifier "sprinting + near target". You can't just disable that input — it's also normal melee, so blocking it would prevent regular fistfights too. The engine's tackle logic is decided after input dispatch, based on ped state, not based on which input button was pressed.

The fix

Use the combat-action disable flag system instead. From discoveries/AI/COMBAT_ACTION_DISABLE_FLAGS/README.md, flag 33 = ADF_TACKLE (and flag 1 = ADF_GRAPPLE for safety) are the engine's own switches for "this ped is not allowed to perform a tackle/grapple against others".

local ADF_GRAPPLE = 1
local ADF_TACKLE = 33

-- Block:
Citizen.InvokeNative(0xB8DE69D9473B7593, ped, ADF_TACKLE)  -- _DISABLE_COMBAT_ACTION_AGAINST_OTHERS
Citizen.InvokeNative(0xB8DE69D9473B7593, ped, ADF_GRAPPLE)

-- Re-enable:
Citizen.InvokeNative(0x949B2F9ED2917F5D, ped, ADF_TACKLE)  -- _ENABLE_COMBAT_ACTION_AGAINST_OTHERS
Citizen.InvokeNative(0x949B2F9ED2917F5D, ped, ADF_GRAPPLE)

This actually prevents the ped from initiating a tackle — the animation never starts. Verified on RedM build 1491, game build 1491. Normal melee (INPUT_MELEE_ATTACK) still works unaffected, so the player can still punch.

Call these only on state transitions, not every frame.</body> <parameter name="category">natives

Linked natives

  • _CLEAR_PED_ACTION_DISABLE_FLAG (0x949B2F9ED2917F5D)
  • _SET_PED_ACTION_DISABLE_FLAG (0xB8DE69D9473B7593)

Tags: combat, tackle, grapple, ped, controls, anti-abuse
Category: uncategorized
Source: af-antitackle
Created: 2026-05-13T19:09:37.315Z

Back to documentation