image

  • FIVEM – CONTEXTMENU NUI. Focusing on or Different Interplay Function
  • A number of Submenu
  • Straightforward Implementation
  • Clear UI
  • GUI Sounds (non-compulsory)
  • Whitelisted Occasions (non-compulsory)
  • Straightforward to built-in to Any Goal Script
  • Set off Export
  • Set off Consumer or Server
  • Move Any Arguments as non-compulsory to the receiver
uidata = {
    ['Ask Question'] = {
        ['title'] = 'EXPORT SAMPLE',
        ['fa'] = '<i class="fad fa-question-square"></i>',
        ['type'] = 'export', -- occasion / export
        ['content'] = 'ask', -- EVENT
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false, exports="exports["cd_keymaster"]:StartKeyMaster"}, -- WITHOUT ()
    },
    ['Steal'] = {
        ['title'] = 'Steal',
        ['fa'] = '<i class="fad fa-hood-cloak"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'holdup',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false},
    },
    ['SellDrag'] = {
        ['title'] = 'Promote Meth',
        ['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'kill',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false},
    },
},
TriggerEvent('renzu_contextmenu:insert',uidata,"MENU TITLE","ENTITY",true)
  • the Knowledge should be populated first utilizing the exports pattern above

TriggerEvent('renzu_contextmenu:present')

127672457-6fbbab27-9538-41b0-8afd-2f1ab2eb3e08

TriggerEvent('renzu_contextmenu:shut')

Pattern Multi Sub Menu
native multimenu = {}
firstmenu = {
    ['Ask Question'] = {
        ['title'] = 'EXPORT SAMPLE',
        ['fa'] = '<i class="fad fa-question-square"></i>',
        ['type'] = 'export', -- occasion / export
        ['content'] = 'ask', -- EVENT
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false, exports="exports["cd_keymaster"]:StartKeyMaster"},
    },
    ['Steal'] = {
        ['title'] = 'Steal',
        ['fa'] = '<i class="fad fa-hood-cloak"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'holdup',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {1,2,true,"STRING"}, arg_unpack = false},
    },
    ['SellDrag'] = {
        ['title'] = 'Promote Meth',
        ['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'kill',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {false,2,3,4}, arg_unpack = false},
    },
}
secondmenu = {
    ['Ask Question'] = {
        ['title'] = 'EXPORT SAMPLE',
        ['fa'] = '<i class="fad fa-question-square"></i>',
        ['type'] = 'export', -- occasion / export
        ['content'] = 'ask', -- EVENT
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false, exports="exports["cd_keymaster"]:StartKeyMaster"},
    },
    ['Steal'] = {
        ['title'] = 'Steal',
        ['fa'] = '<i class="fad fa-hood-cloak"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'holdup',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {1,true,3,4}, arg_unpack = false},
    },
    ['SellDrag'] = {
        ['title'] = 'Promote Meth',
        ['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
        ['type'] = 'occasion', -- occasion / export
        ['content'] = 'kill',
        ['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {1,2,3,4}, arg_unpack = false},
    },
}
multimenu['FIRST MENU TITLE'] = firstmenu
multimenu['SECOND MENU TITLE'] = secondmenu
TriggerEvent('renzu_contextmenu:insertmulti',multimenu,"ENTITY",true)
Video Brief Demo

2021-07-30 23-37-46



Looking for paid scripts? Click here