Good evening everyone,
I have a problem with my krz_personalmenu ([Release][ESX/NativeUI] KRZ-PersonalMenu)
I would like to add a “MISCELLANEOUS” tab, and inside create submenus:
- SIM management
- Carry a person
- Key management
But I can’t make the function call, here is an example of how I did it
RMenu.Add('personal', 'opensim', RageUI.CreateSubMenu(RMenu.Get('rageui', 'personal'), 'Gestion SIM'))
And here’s how my old menu works:
function AddMenuSIMMenu(menu)
simMenu = _menuPool:AddSubMenu(menu, ('📲 ~o~Carte SIM'))
local simItem = NativeUI.CreateItem(('Gestion des cartes SIM'), "")
simMenu.SubMenu:AddItem(simItem)
simMenu.SubMenu.OnItemSelect = function(sender, item, index)
if item == simItem then
openCarteSIM()
_menuPool:CloseAllMenus()
end
end
end