HM BetterSettings - Configuration
All settings are in config.lua. The script finds the bindings by itself – here you only set how the page is opened and what the entries are called.
General
Section titled “General”| Setting | Default | Meaning |
|---|---|---|
Config.Locale | 'de' | Language: 'de' or 'en' |
Config.Command | 'tasten' | Command that opens the page |
Config.Aliases | { 'keybinds', 'tastenbelegung' } | further commands that work the same way |
Config.OpenKey | nil | Key that opens the page, e.g. 'F10' (each player can change it); nil = none |
Config.Debug | false | additional output in the F8 console |
Display
Section titled “Display”| Setting | Default | Meaning |
|---|---|---|
Config.ServerName | nil | Text at the top right of the window, e.g. your server name |
Config.DefaultSort | 'script' | Sorting when first opened: 'script', 'name' or 'key' |
Config.ShowCommand | true | show the command in small print below the description |
Config.ShowUnbound | true | also show bindings that have no key |
Config.Favorites | true | players can keep bindings with a star |
Sorting, favourites and collapsed scripts are remembered per player on their own computer.
Custom names
Section titled “Custom names”Without an entry, the script’s folder name is shown on the left. Nicer names:
Config.ScriptNames = { ['esx_ambulancejob'] = 'Ambulance', ['pma-voice'] = 'Radio & voice',}If a script does not provide a usable description (for example an encrypted script), only the command name is shown. Your own description per command:
Config.Labels = { ['+handsup'] = 'Hands up',}Hiding
Section titled “Hiding”Config.HideScripts = { 'my_admin_script' } -- whole scriptsConfig.HideCommands = { '+secret' } -- single commandsChange key
Section titled “Change key”The pen next to a binding opens the GTA key bindings, enters the FiveM section and scrolls to the right line. The script only presses arrow keys and Enter once on “FiveM”.
| Setting | Default | Meaning |
|---|---|---|
Enabled | true | false = only open the menu, do not scroll |
PressFrames | 1 | for how many frames an arrow key is held (higher = slower but safer) |
OpenWait | 700 | milliseconds to wait until the menu is built |
CategoryWait | 500 | milliseconds to wait until the “FiveM” section shows its lines |
Log | true | one line per jump in the F8 console |
These settings are in Config.MenuJump.
Technical
Section titled “Technical”| Setting | Default | Meaning |
|---|---|---|
Config.ProbeAllCommands | true | check every command on the server for an assigned key – also finds encrypted scripts. false = only bindings from the source files |
For other scripts
Section titled “For other scripts”exports.hm_BetterSettings:Open() -- open the pageexports.hm_BetterSettings:Close() -- close the pageexports.hm_BetterSettings:IsOpen() -- true / falseAll three are client exports.