1,012 online 22 members  + Join RP Base  +
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
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
  • 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, accent or 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-right by default, or top-left, top, top-right, left, center, right, bottom-left and bottom, with an offset in vw / vh. Menus on the same anchor stack, up to Config.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: ShowThisFrame shows 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 with hide, 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-filter does 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.
Dependencies
None.
Installation
  1. Clone the repository into your resources folder.

   git clone https://github.com/0xS4cha/sxHelpMenu.git

  1. Build the interface, or download a release where web/dist is already built.

   cd sxHelpMenu/web
   npm install
   npm run build

  1. Add the resource to your server.cfg before the resources that use it.

   ensure sxHelpMenu

Usage
Key / command, Description

R / helpmenu_nextpage, Next page of the last shown menu that has several pages

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 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 below
menu:Header(subtitle, title, options?), Header of the menu, options takes watermark and image
menu:Position(position, offset?), Anchor and offset
menu:Set(key, value), Sets any field of the menu
menu:Page(title?, icon?, id?), Adds a page and returns it
page:Text(label, value, options?), Adds a text row
page:Bar(label, value, options?), Adds a segmented bar
page:Slider(label, value, options?), Adds a slider
page: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 fit
page:Keys(keys, options?), Adds a row of keys, keys is a list of { key, label? }, options.label adds a label on the left
page:Countdown(label, seconds, options?), Adds a countdown, its end is fixed when the row is created
page:Footer(label, items), Footer of the page
page:Header(subtitle, title, options?), Header of this page only
menu:Show(duration?), Shows the menu, or updates it when it is already shown
menu:ShowThisFrame(), Shows the menu while it is called every tick, see Per frame
menu:Refresh(), Sends the changes made with the builder to a shown menu
menu:SetRow(rowId, patch), Updates the rows with this id
menu:SetPage(page) / menu:GetPage(), 'next', 'prev' or a page index starting at 0
menu: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

…