Skip to content

Releases

sxHelpMenu v1.4.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 19:10
44cfed1

What's new

  • Hide rules per menu: a menu can override every rule of Config.Hide for itself with hide = { 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 with hide = { pauseMenu = false }, or a menu can hide in the cinematic camera while the others stay. A rule left out follows Config.Hide.

Changes

  • pauseMenu = true from 1.3.0 still works, as a shortcut for hide = { pauseMenu = false }. hide.pauseMenu wins when both are set.
  • A SetHidden request still hides every menu.
  • IsHidden() and sxHelpMenu:hiddenChanged still follow Config.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

Choose a tag to compare

@github-actions github-actions released this 20 Nov 16:56
e4d83f0

What's new

  • Visible in the pause menu: pauseMenu = true on 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 pauseMenu menu can stay while the others hide.
  • IsHidden() and the sxHelpMenu:hiddenChanged event 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

Choose a tag to compare

@0xS4cha 0xS4cha released this 19 Nov 21:52
60760ba

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 with Config.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 = 37 reads the game control instead of the key mapping, so TAB switches 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: thresholds on 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 the SetHidden export.
  • Stack limit: Config.StackLimit hides the oldest menu of a full stack.
  • Builder: page:Countdown, page:Keys, page:Image and page:Stats.

Fixes

  • Each menu keeps its own offset, menus with another offset get their own stack.
  • A menu shown with key = false no longer takes the page key.

Changes

  • key of a menu is true by 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

Choose a tag to compare

@0xS4cha 0xS4cha released this 19 Nov 21:01
1642604

What's new

  • Per frame menus: ShowThisFrame(menu or id) shows a menu while it is called every tick, in a while true do ... Wait(0) end loop, 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 (100 ms by default), the delay without calls before the menu hides.
  • Builder: menu:ShowThisFrame() and HelpMenu.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

Choose a tag to compare

@0xS4cha 0xS4cha released this 19 Nov 20:41
cbbd897

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

  1. Download sxHelpMenu.zip below and extract it into your resources folder. The interface is already built.
  2. Add ensure sxHelpMenu to your server.cfg before the resources that use it.
  3. 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.