Introduction

A menu system for FiveM: default menus, input dialogs and list menus, opened with the same calls as ESX.UI.Menu.

More Menus is the menu system of your server. Other scripts open menus through client exports that are shaped exactly like ESX.UI.Menu, and the player sees a modern menu, an input dialog or a table. It calls no framework, so it runs on ESX and QBCore alike, and an ESX script moves over by replacing ESX.UI.Menu. with exports.more_menus:.

For scripts, not for players

More Menus does nothing on its own. It is a building block that other scripts use. Players only see it through those scripts, and the only command is /testmenu while dev_mode is on. There is no database and no server side.

Features

  • Default menu: buttons, sliders, range bars, checkboxes, toggles and submenus, with an info bar for cash, bank and black money and nine screen positions.
  • Input dialog: text or whole numbers with minimum and maximum, own error lines and an error your script can set while the player types.
  • List menu: a table with column headers, a search bar from 9 rows on, buttons inside cells and a summary line.
  • Same calls as ESX.UI.Menu: Open, Close, CloseAll, GetOpened and GetOpenedMenus, plus IsOpen and SetDialogError.
  • Runs on ESX and QBCore: the resource calls no framework itself, and it does not interfere with the ESX menu resources.
  • Several menus at once: default menus stack as submenus, and dialogs and lists show the newest one.
  • Keyboard and mouse: arrow keys with repeat, Enter and Backspace, a mouse mode on left Alt and keys that players can rebind.
  • English and German texts, a built-in /testmenu for developers and no database.

Requirements

more_libresourcerequired

Shared library of the More Scripts resources. It detects your framework and supplies the money, notification and update-check functions that More Menus uses. It must be started before more_menus. Nothing else is required: there is no database and no extra framework dependency.

Last updated