Skip to content

Fix #4121: No weapon switching when next and previous weapon are bound to the same key - #5375

Merged
FileEX merged 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-4121
Sep 26, 2026
Merged

FileEX merged 1 commit into
multitheftauto:masterfrom
iManGaaX:resolve/issue-4121

Conversation

@iManGaaX

Copy link
Copy Markdown
Contributor

Summary

Binding the same key to both next weapon & previous weapon no longer switches the weapon

Motivation

Both controls were sent to the game in the same frame, so it cycled a weapon forwards and backwards at once and glitched the switch. they r now cancelled out: when both are down, neither is reported, so the current weapon stays

Closes #4121.

Test plan

Bind Q to both Next weapon and Previous weapon, then press Q in game; the weapon should not change; unbind Previous weapon: Q should cycle to the next weapon again

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 23, 2026
@FileEX FileEX added this to the 1.7 (Current) milestone Sep 26, 2026
@FileEX
FileEX merged commit 701678e into multitheftauto:master Sep 26, 2026
10 checks passed
@iManGaaX
iManGaaX deleted the resolve/issue-4121 branch September 26, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MTA Binds Bug

2 participants