fivem
fivem copied to clipboard
feat(gameinput): new sorting algo and new native
Goal of this PR
Actually, @tabarra added # in his key mappings to have the txAdmin key mappings at the top of the FiveM key settings. This PR aims to fix this so Tabarra doesn't have to do this workaround
How is this PR achieving the goal
If the left is monitor and not the right one, we return true to indicate that the left needs to be placed before the right. If the right one is txAdmin and not the left one, we return false so that the right is placed before the left. Thanks @FabianTerhorst for fixing the sorting logic.
This PR applies to the following area(s)
FiveM
Successfully tested on
Here is a screenshot where i did the test with a resource called ns_carrierheist.
Game builds: 3258
Platforms: Windows,
Checklist
- [x] Code compiles and has been tested successfully.
- [x] Code explains itself well and/or is documented.
- [x] My commit message explains what the changes do and what they are for.
- [x] No extra compilation warnings are added by these changes.