A Menu Base for QRCore This script allows you create menu like RDR2.
- Be sure you have RedEM and RedEM:RP Installed if not -> RedEM
- add
ensure qr_menu
afterensure qr-core
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)