[help] DisableControlAction for attack (don't work)?

Hello everyone ! i need your help.

When I’m in a menu (to buy weapons for example), I want to disable the player’s movements (attacks, walk, etc …).

I can disable the movements, just about everything I want, the main attacks but not the other attacks (b on the joystick, r on keyboard)

code to desactivate attack:

DisableControlAction(1, 140, true) -- Attack
DisableControlAction(1, 141, true) -- Attack
DisableControlAction(1, 142, true) -- Attack
DisableControlAction(1, 24, true) -- Attack
DisableControlAction(1, 257, true) -- Attack
DisableControlAction(1, 263, true) -- Attack
DisableControlAction(1, 264, true) -- Attack

thank for your help !

DisableControlAction(0, 142, true)

Try that.

yup, i’ts work, thank you !

Your welcome! Glad it worked for you.

1 Like