Skip to content

QRCore-RedM-Re/qr_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR_menu

A Menu Base for QRCore This script allows you create menu like RDR2.

1. Installation

  • Be sure you have RedEM and RedEM:RP Installed if not -> RedEM
  • add ensure qr_menu after ensure qr-core

alt text

2.Usage

Add this on top your client side file

MenuData = {}
TriggerEvent("qr_menu:getData",function(call)
    MenuData = call
end)

Example:

         MenuData.CloseAll()
        local elements = {
 
                {label = "Test Option", value = 'test' , desc = "Press if you want print text"},
        }
 
       MenuData.Open(
 
                'default', GetCurrentResourceName(), 'test_menu',
 
                {
 
                        title    = 'TestMenu',
                        
                        subtext    = 'There is a subtext',
 
                        align    = 'top-left',
 
                        elements = elements,
 
                },
                function(data, menu)

                        if(data.current.value == 'test') then
                               print("test")
                        end
                end,
                
                function(data, menu)
                        menu.close()
              end)  

3.Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published