Configuration
Every setting of More Menus: language, timing, key bindings and texts.
All options live in backend/config/cl_config.lua, which stays editable. There is no server configuration file. The texts are in backend/locale/en.lua and de.lua, which use the same keys; the last table lists every text with its English default. Titles and labels inside a script's own menus come from the script that opens the menu, not from these files.
Language and settings (cl_config.lua)
MS.Localeen- Language of every text: en (English) or de (German). The texts themselves are in backend/locale/en.lua and de.lua.
MS.Locales{}- Table the locale files fill. Leave it empty.
MS.Settings: dev_modefalse- Prints debug messages to the F8 console and registers the /testmenu command, which opens a menu that shows every element type, the dialogs and the list. Keep it false on a live server.
MS.Settings: load_delay3000- Milliseconds the client waits after the resource starts before it sends the language texts to the menu interface.
MS.Settings: notify_time5000- Milliseconds a notification stays on screen. Used for the message shown when a dialog input is refused.
Key bindings (cl_config.lua)
MS.Keys has one entry per control, each with a command and a default key (FiveM key names). A player's own binding in the FiveM key settings wins over the default; the bindings appear there under the names Menu: up, Menu: down and so on.
MS.Keys: upUP- Moves the selection up. Command: +more_menus_up. A held key repeats every 200 ms.
MS.Keys: downDOWN- Moves the selection down. Command: +more_menus_down. A held key repeats every 200 ms.
MS.Keys: leftLEFT- Lowers the value of a slider or range and flips a toggle or checkbox. Command: +more_menus_left. A held key repeats every 150 ms.
MS.Keys: rightRIGHT- Raises the value of a slider or range and flips a toggle or checkbox. Command: +more_menus_right. A held key repeats every 150 ms.
MS.Keys: enterRETURN- Chooses the selected row and runs the submit callback. Command: more_menus_enter.
MS.Keys: backBACK- Runs the cancel callback of the newest default menu. Command: more_menus_back. The menu only closes if your cancel callback closes it. In mouse mode, Escape does the same.
MS.Keys: cursorLMENU- Turns on mouse mode for default menus (left Alt). Alt again or a right click leaves it. Command: more_menus_cursor.
Texts (backend/locale)
notify_titleMenus- Title of the notifications the resource shows.
dialog_invalidThat input is invalid!- Notification when a dialog input is refused on confirm: a number below the minimum or above the maximum.
info_cashCash:- Label of the cash entry in the info bar of a default menu.
info_bankBank:- Label of the bank entry in the info bar.
info_blackBlack Money:- Label of the black money entry in the info bar.
mapping_upMenu: up- Name of the up key in the FiveM key settings.
mapping_downMenu: down- Name of the down key in the FiveM key settings.
mapping_leftMenu: left- Name of the left key in the FiveM key settings.
mapping_rightMenu: right- Name of the right key in the FiveM key settings.
mapping_enterMenu: select- Name of the select key in the FiveM key settings.
mapping_backMenu: back- Name of the back key in the FiveM key settings.
mapping_cursorMenu: mouse mode- Name of the mouse mode key in the FiveM key settings.
menu_titleMenu- Title of a default menu that was opened without a title.
menu_emptyNothing to choose here.- Shown in a default menu that has no rows.
money${value}- Format of every money amount. {value} is replaced by the amount, rounded and grouped with thousands separators. Used for info bar entries and list summary entries with money set.
confirmConfirm- Text of the confirm button of dialogs.
cancelCancel- Text of the cancel button of dialogs.
dialog_titleInput- Title of a dialog that was opened without a title.
dialog_placeholderType here- Placeholder of a text dialog that has no placeholder of its own.
dialog_placeholder_number0- Placeholder of a number dialog that has no placeholder of its own.
dialog_not_numberEnter a number.- Error line under a number dialog when the typed text is not a number.
dialog_minAt least {min}.- Error line when the number is below the minimum. {min} is replaced by the minimum. A minError of your script replaces this text.
dialog_maxAt most {max}.- Error line when the number is above the maximum. {max} is replaced by the maximum. A maxError of your script replaces this text.
list_titleList- Title of a list that was opened without a title.
list_entriesEntries:- Label of the counter in the header of a list.
list_searchSearch- Placeholder of the search bar of a list.
list_emptyNothing to show.- Shown when a list has no rows.
list_no_matchNo entry matches the search.- Shown when the search of a list finds nothing.
Last updated