Repository navigation
Releases
sxHelpMenu v1.4.0
What's new
- Hide rules per menu: a menu can override every rule of
Config.Hidefor itself withhide = { pauseMenu?, hudHidden?, screenFaded?, cinematic? }, in both directions. A server can hide every menu in the pause menu while a resource keeps its map card visible withhide = { pauseMenu = false }, or a menu can hide in the cinematic camera while the others stay. A rule left out followsConfig.Hide.
Changes
pauseMenu = truefrom 1.3.0 still works, as a shortcut forhide = { pauseMenu = false }.hide.pauseMenuwins when both are set.- A
SetHiddenrequest still hides every menu. IsHidden()andsxHelpMenu:hiddenChangedstill followConfig.Hide.
Update
Download sxHelpMenu.zip below and replace the sxHelpMenu folder in your resources. The interface is already built. No new configuration key.
sxHelpMenu v1.3.0
What's new
- Visible in the pause menu:
pauseMenu = trueon a menu keeps it on screen when the pause menu is open, for a card shown over the map. The other menus still fade out, and the other hide rules (SetHidden, hidden HUD, faded screen, cinematic camera) still hide every menu.
Changes
- The menus fade out one by one instead of the whole layer, so a
pauseMenumenu can stay while the others hide. IsHidden()and thesxHelpMenu:hiddenChangedevent keep their meaning, the event only fires when the hidden state changes.
Update
Download sxHelpMenu.zip below and replace the sxHelpMenu folder in your resources. The interface is already built. No new configuration key.
sxHelpMenu v1.2.0
What's new
- Glass: the rows are drawn over a blurred copy of the game, rendered with WebGL in a worker since the CSS blur does not see the game in FiveM. Per menu with
glass, tuned withConfig.Glass(fps,downscale,strength). - Key badge: the badge shows the key bound by the player, in a round badge like the GTA 6 card.
- TAB as page key:
Config.Keys.control = 37reads the game control instead of the key mapping, soTABswitches the pages without opening the weapon wheel. - New rows:
countdown, counted down by the interface without updates from Lua;keys, a row of key hints like the instructional buttons;image, an image across the menu with a caption;stats, up to 4 small values side by side.
- Thresholds:
thresholdson bars and sliders pick the tone from the value. - Global hide: the menus fade out in the pause menu, without HUD and while the screen is faded out (
Config.Hide), or on request with theSetHiddenexport. - Stack limit:
Config.StackLimithides the oldest menu of a full stack. - Builder:
page:Countdown,page:Keys,page:Imageandpage:Stats.
Fixes
- Each menu keeps its own
offset, menus with another offset get their own stack. - A menu shown with
key = falseno longer takes the page key.
Changes
keyof a menu istrueby default and follows the key bound by the player. A string still forces the label.
Update
Download sxHelpMenu.zip below and replace the sxHelpMenu folder in your resources. The interface is already built. If you kept your shared/config.lua, add the new keys from the README: Config.Keys.control, Config.Defaults.glass, Config.Glass, Config.Hide and Config.StackLimit.
sxHelpMenu v1.1.0
What's new
- Per frame menus:
ShowThisFrame(menu or id)shows a menu while it is called every tick, in awhile true do ... Wait(0) endloop, and hides it when the calls stop. Only the first call sends the menu to the interface, the next ones keep it alive. - New
Config.TickTimeout(100ms by default), the delay without calls before the menu hides. - Builder:
menu:ShowThisFrame()andHelpMenu.ShowThisFrame(menu).
Update
Download sxHelpMenu.zip below and replace the sxHelpMenu folder in your resources. Keep your shared/config.lua and add Config.TickTimeout = 100 to it.
See the README for the per frame menus.
sxHelpMenu v1.0.0
First release of sxHelpMenu, a library to show help menus and info widgets in the style of GTA 6.
Features
- Display only menus that never take the focus
- Pages with a title and an icon, switched with a key
- Text rows with icons, segmented bars, sliders with a value badge, a header and a footer
- Bottom right by default, or any of the nine anchors with an offset, stacked menus on the same anchor
- Live updates of a row or a whole menu, auto hide after a duration
- Every Lucide icon by name or an image URL
- Client exports and a chainable Lua builder for other resources
Installation
- Download
sxHelpMenu.zipbelow and extract it into yourresourcesfolder. The interface is already built. - Add
ensure sxHelpMenuto yourserver.cfgbefore the resources that use it. - In your resource, add
client_script '@sxHelpMenu/lib/menu.lua'to use the builder, or call the exports directly.
See the README for the menu format, the builder, the exports and the configuration. Examples are in sxHelpMenu_example.