Mtasa-blue: 'toggleControl' does not work correctly

Created on 29 Sep 2019  路  4Comments  路  Source: multitheftauto/mtasa-blue

Describe the bug
toggleControl is not disabling shots when I press "TAB".

To reproduce
No error...

Expected behaviour
I was using ### toggleControl to disable uzi shooting. It worked normally, when I click the mouse it does not fire but if I press the 'TAB' key it fires normally as if there was no toggleControl.I was using toggleControl to disable uzi shooting. It worked normally, when I click the mouse it does not fire but if I press the 'TAB' key it fires normally as if there was no toggleControl.

Screenshots
No images ...

Version

  • 1.5.7 (last)
  • windows7
    -->

Additional context
I tested with other players the same problem happened to them was not just me.

bug documentation

Most helpful comment

toggleControl( 'action', false )
Be happy

All 4 comments

instead of using toggleControl, you can use onClientPlayerWeaponFire instead for that

instead of using toggleControl, you can use onClientPlayerWeaponFire instead for that

852

toggleControl( 'action', false )
Be happy

I think we should add a note to wiki about using 'action', false. I don't think this is an actual bug?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StrixG picture StrixG  路  3Comments

PlatinMTA picture PlatinMTA  路  3Comments

patrikjuvonen picture patrikjuvonen  路  3Comments

ALw7sH picture ALw7sH  路  3Comments

christophercampbell1 picture christophercampbell1  路  4Comments