renzu_contextmenu (STANDALONE)
- FIVEM - CONTEXTMENU NUI. Targeting or Other Interaction Purpose
FEATURE
- Multiple Submenu
- Easy Implementation
- Clean UI
- GUI Sounds (optional)
- Whitelisted Events (optional)
- Easy to integrated to Any Target Script
- Trigger Export
- Trigger Client or Server
- Pass Any Arguments as optional to the receiver
SAMPLE USAGE SINGLE EXPORT
uidata = {
['Ask Question'] = {
['title'] = 'EXPORT SAMPLE',
['fa'] = '<i class="fad fa-question-square"></i>',
['type'] = 'export', -- event / 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'] = 'event', -- event / export
['content'] = 'holdup',
['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {}, arg_unpack = false},
},
['SellDrag'] = {
['title'] = 'Sell Meth',
['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
['type'] = 'event', -- event / 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)
SHOW THE MENU
- the Data must be populated first using the exports sample above
TriggerEvent('renzu_contextmenu:show')
SAMPLE RESULT
CLOSE MENU
TriggerEvent('renzu_contextmenu:close')
Sample Multi Sub Menu
SAMPLE USAGE MULTI EXPORT
local multimenu = {}
firstmenu = {
['Ask Question'] = {
['title'] = 'EXPORT SAMPLE',
['fa'] = '<i class="fad fa-question-square"></i>',
['type'] = 'export', -- event / 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'] = 'event', -- event / export
['content'] = 'holdup',
['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {1,2,true,"STRING"}, arg_unpack = false},
},
['SellDrag'] = {
['title'] = 'Sell Meth',
['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
['type'] = 'event', -- event / 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', -- event / 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'] = 'event', -- event / export
['content'] = 'holdup',
['variables'] = {server = false, send_entity = true, onclickcloseui = true, custom_arg = {1,true,3,4}, arg_unpack = false},
},
['SellDrag'] = {
['title'] = 'Sell Meth',
['fa'] = '<i class="fad fa-hand-holding-magic"></i>',
['type'] = 'event', -- event / 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)
Download
Video Short Demo
2021-07-30 23-37-46