FreeScript
sxHelpMenu
by 0xS4cha · version 2026.11.20 · updated 5 days ago
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 240 KB
- Code check
- Clean
- Licence
- MIT
- Released
- Nov 2026
This FiveM library allows to create help menus similar to the one of Grand Theft Auto VI (GTA 6)
sxHelpMenu
A FiveM library to show help menus and info widgets in the style of Grand Theft Auto VI (GTA 6). Other resources describe a menu in Lua, with pages of text rows, segmented bars, sliders and a footer, and sxHelpMenu draws it in the bottom right of the screen or at any of the nine anchors.
Features
None.
Installation
Usage
Key / command, Description
The key can be changed in Settings > Key Bindings > FiveM, the badge on the menus follows the key bound by the player.
Keys already used by the game, like
Builder
Add the builder to the
Method, Description
Exports
```lua
local id = exports.sxHelpMenu:Show({
id = 'controls',
position = 'bottom',
pages = {
{
title = 'Controls',
icon = 'keyboard',
rows = {
{ type = 'text', label = 'Scan', value = 'Left click', icon = 'mouse-pointer-click' },
{ type = 'text', label = 'Next page', value = 'R', tone
…
A FiveM library to show help menus and info widgets in the style of Grand Theft Auto VI (GTA 6). Other resources describe a menu in Lua, with pages of text rows, segmented bars, sliders and a footer, and sxHelpMenu draws it in the bottom right of the screen or at any of the nine anchors.
Features
- Display only: the menus never take the focus, the player keeps walking, driving and shooting.
- Pages: a menu has one or more pages, with a title and an icon, switched with a key. The dots and the key are shown above the menu.
- Rows: text with an optional icon badge, segmented bar and slider with a value badge, each with a tone (
neutral,danger,safe,warning,accentor a hex color). - Header and footer: a dark header with a subtitle, a title and a watermark (text or image), and a dark footer with a label and values with icons. Both can change per page.
- Positions:
bottom-rightby default, ortop-left,top,top-right,left,center,right,bottom-leftandbottom, with an offset invw/vh. Menus on the same anchor stack, up toConfig.StackLimit. - Live updates: update a row or the whole menu without replaying the opening animation.
- Auto hide: a duration after which the menu hides itself.
- Per frame:
ShowThisFrameshows a menu while it is called every tick and hides it when the calls stop, like the native help texts. - Global hide: the menus fade out in the pause menu, when the HUD is hidden or the screen faded out, and when a resource asks for it with
SetHidden. Each menu can override these rules withhide, for example to stay visible in the pause menu over the map. - Cleanup: the menus of a resource are hidden when it stops.
- Glass: the rows are drawn over a blurred copy of the game, rendered with WebGL since the CSS
backdrop-filterdoes not see the game in FiveM. - Icons: every Lucide icon by name (
gauge,car-front…) or an image URL (nui://my_resource/logo.png). - Builder: a Lua file to include in your resource with a chainable API, or plain exports.
None.
Installation
- Clone the repository into your
resourcesfolder.
git clone https://github.com/0xS4cha/sxHelpMenu.git
- Build the interface, or download a release where
web/distis already built.
cd sxHelpMenu/web
npm install
npm run build
- Add the resource to your
server.cfgbefore the resources that use it.
ensure sxHelpMenuUsage
Key / command, Description
R / helpmenu_nextpage, Next page of the last shown menu that has several pagesThe key can be changed in Settings > Key Bindings > FiveM, the badge on the menus follows the key bound by the player.
Keys already used by the game, like
TAB for the weapon wheel, cannot be bound this way since the game catches them first. Set Config.Keys.control to the control of this key instead, the key mapping is then not registered and the control is disabled and read while a menu with several pages is shown:
Config.Keys = {
nextPage = 'TAB',
control = 37,
}Builder
Add the builder to the
fxmanifest.lua of your resource:
client_script '@sxHelpMenu/lib/menu.lua'
local menu = HelpMenu.new('vehicle')
:Header('Progen', 'T20', { watermark = 'Progen' })
menu:Page('Statistics', 'gauge')
:Slider('Speed', 4.8, { id = 'speed', max = 10 })
:Slider('Acceleration', 5.0, { max = 10 })
:Slider('Strength', 5.1, { max = 10 })
:Footer('Rating', {
{ value = '548', icon = 'mountain' },
{ value = '219 KM/H', icon = 'route' },
})
menu:Page('Info', 'user-round')
:Text('Owner', 'Lucas Martin', { icon = 'user-round' })
:Text('Access', 'Locked', { icon = 'key-round', tone = 'danger' })
:Bar('Fuel', 0.14, { tone = 'danger' })
menu:Show()
menu:SetRow('speed', { value = 6.2 })
menu:SetPage('next')
menu:Hide()Method, Description
HelpMenu.new(id?, options?), Creates a menu, options takes the fields of the menu belowmenu:Header(subtitle, title, options?), Header of the menu, options takes watermark and imagemenu:Position(position, offset?), Anchor and offsetmenu:Set(key, value), Sets any field of the menumenu:Page(title?, icon?, id?), Adds a page and returns itpage:Text(label, value, options?), Adds a text rowpage:Bar(label, value, options?), Adds a segmented barpage:Slider(label, value, options?), Adds a sliderpage:Stats(items, options?), Adds up to 4 small values side by side, items is a list of { label?, value, icon?, tone? }page:Image(src, options?), Adds an image across the menu, options takes label, height and fitpage:Keys(keys, options?), Adds a row of keys, keys is a list of { key, label? }, options.label adds a label on the leftpage:Countdown(label, seconds, options?), Adds a countdown, its end is fixed when the row is createdpage:Footer(label, items), Footer of the pagepage:Header(subtitle, title, options?), Header of this page onlymenu:Show(duration?), Shows the menu, or updates it when it is already shownmenu:ShowThisFrame(), Shows the menu while it is called every tick, see Per framemenu:Refresh(), Sends the changes made with the builder to a shown menumenu:SetRow(rowId, patch), Updates the rows with this idmenu:SetPage(page) / menu:GetPage(), 'next', 'prev' or a page index starting at 0menu:IsVisible() / menu:Hide()Exports
```lua
local id = exports.sxHelpMenu:Show({
id = 'controls',
position = 'bottom',
pages = {
{
title = 'Controls',
icon = 'keyboard',
rows = {
{ type = 'text', label = 'Scan', value = 'Left click', icon = 'mouse-pointer-click' },
{ type = 'text', label = 'Next page', value = 'R', tone
…