[FREE] [Standalone] Ragemenu

ragemenu

FiveM native Rage Menu, built with React.
You can find the Documentation here

Features

  • High-performance script
  • Cached component and menu state
  • Runtime-editable menus and components
  • Fully typed

Preview

Performance Metrics

Idle

In Use

Installation

  1. Download the latest release from GitHub.

  2. Extract the contents of the zip file into your resources folder.

  3. Add the path of meta.lua to your Sumneko LLS workspace.library setting.

  4. Add ensure ragemenu to your server.cfg.

  5. Add @ragemenu/import.lua to your desired resources fxmanifest.lua and start scripting!

Example

--- you can create a menu once and reopen it at any time
--- state will be cached and reused
local menu = Menu:Create('Example', 'Example Subtitle', nil, nil, '')
-- 520 is a custom width, in px
local submenu = Menu:Create('Submenu', 'Submenu Subtitle', 520)
submenu:AddButton('Submenu Button'):OnClick(function()
  print('Submenu Button Clicked')
end)

menu:AddButton('Button', 'Button Right Label', 'Button Description'):OnClick(function()
  print('Button Clicked')
end)

menu:AddSubmenu(submenu, 'Submenu Label', 'Right Label', 'Submenu Description')

menu:AddSeparator('Separator')

local checkbox = menu:AddCheckbox('Checkbox', 'Checkbox Description', {
  right = 'card_suit_hearts'
}, true)

checkbox:OnCheck(function(checked)
  print('Checkbox Checked', checked)
end)

menu:AddButton('Disable Checkbox'):OnClick(function()
  checkbox:Disable(not checkbox.disabled)
  print('Checkbox Disabled', checkbox.disabled)
end)

menu:AddButton('Toggle Checkbox Visibility'):OnClick(function()
  checkbox:ToggleVisiblity(not checkbox.visible)
  print('Checkbox Visibility', checkbox.visible)
end)

menu:AddList('List', 'List Description', {
  right = 'card_suit_hearts'
}, {
  'List Item 1',
  'List Item 2',
  'List Item 3'
}, 1):OnChange(function(current, currentValue)
  print('List Changed', current, currentValue)
end)

menu:AddSlider('Slider', 'Slider Description', {
  right = 'card_suit_hearts'
}, 100, 0, 10, 50):OnChange(function(current)
  print('Slider Changed', current)
end)

RegisterCommand('example', function()
  if menu:IsOpen() then
    menu:Close()
  else
    menu:Open()
  end
end, false)
11 Likes

WOW WOW WOW!

A ragemenu but actually good performance?!
Im impressed!

3 Likes

Really nice work! A lot of servers need something like this, glad you made this!

3 Likes

Thank you :heart:
hope i can help many with this release.

W Release

2 Likes

:star_struck: :star_struck: :star_struck:

2 Likes

Will header images work with this?

you could add a link on your own, but i can also add them so you won’t have to do that