Not sure if a bug or feature request, but I don’t seem to be able to find a way to alphabetically order, or order in any other way, the list of keybinds under the FiveM category. (Settings -> Key Bindings -> FiveM)
To try making them alphabetical, I went so far as to create my own wrapper with a delay, which sorts the key map table before sending the RegisterKeyMapping
command per frame, in order.
Below is a short example displaying an attempt to see the list in order. The prints of course print out alphabetically as expected.
Citizen.CreateThread(function()
Citizen.Wait(10000)
print(json.encode(bindRefs))
print(json.encode(sortTable))
table.sort(sortTable)
print(json.encode(sortTable))
for _, d in pairs(sortTable) do
local v = bindRefs[d]
print('v', json.encode(v))
RegisterKeyMapping(v.cmdStringDown, v.desc, v.type, v.default)
Citizen.Wait(0)
end
end)